Form not taking calculations from other fields