I have a form with a number field that is calculated as follows:
=IF(Length_of_Leave = "Full Day",
NETWORKDAYS(Start_Date, End_Date,Holidays_2.HolidayDate) * 8,
SUB(End_Date_Time_Partial,Start_Date_Time_Partial) * 24
)
This formula returns a numeric value, so I am confused about the error message seeming to indicate that a date value is being expected.