Why is my calculation coming out funny.