I have 2 time fields I am trying to display the difference between.
Example:
v_CRA_20_Billing_Summary.time_pat_in_room results equal 806
v_basic_booking_data.book_start_time results equal 750
I am looking for the results to display 16, however the results displayed is 56
I have 2 formulas.
@Difference:
if({v_CRA_20_Billing_Summary.time_pat_in_room}>{v_basic_booking_data.book_start_time}) then {v_CRA_20_Billing_Summary.time_pat_in_room}-{v_basic_booking_data.book_start_time} else 0
@Total Time:
If{@difference}>59 then {@difference}-40 else{@difference}
How can I adjust my formulas to give me the results I need, or do I need a new formula?
Example:
v_CRA_20_Billing_Summary.time_pat_in_room results equal 806
v_basic_booking_data.book_start_time results equal 750
I am looking for the results to display 16, however the results displayed is 56
I have 2 formulas.
@Difference:
if({v_CRA_20_Billing_Summary.time_pat_in_room}>{v_basic_booking_data.book_start_time}) then {v_CRA_20_Billing_Summary.time_pat_in_room}-{v_basic_booking_data.book_start_time} else 0
@Total Time:
If{@difference}>59 then {@difference}-40 else{@difference}
How can I adjust my formulas to give me the results I need, or do I need a new formula?