Form is not calculating the value