How come the number field is not calculating its value