Calculation answer/output sometimes shows 0