use of "treasury shares" in computing earnings per share

if a question cites treasury shares (e.g. “Company X has 2,000 shares outstanding plus 500 shares of treasury stock”), then do you just use the primary shares outstanding in computing fully diluted eps?

T-Stock needs to be deducted from shares oustanding when computing weighted average shares