A "same day" sale should, typically, result in a small loss due to selling commissions and fees.
Your per share basis in the stock you sold is the same as the per share "fair market value" used by your employer to calculate the compensation caused by the vesting. So if the compensation related to the vesting of the 640 share was $5,240.00 the per share basis is $8.1875.
Tom Young