Deductions & credits

forget about the calculator for a moment. your total gain should be total sales price less total cost. that total gain should be the same as the total for the long and short-term portions. it's unlikely to be zero.