How to add calculation to the Appointment Widget