[calc] Account for smartasses dividing by zero

Also remove a debugging line I accidentally left in.