How can I calculate total hours between two dates. here I have to select start date and end date. and every day an employee work 8 hours per day. how can I calculate total hours between these two dates. Example If I select two dates date from: 11/21/2022 and date to:11/22/2022. this two dates total hours is 16hours. and date need to count without holiday how can I do that. Please help me.
here is two fileds:
start_date = fields.Date(string='Start Date')
total_hours = fields.Float('Total Hours', compute='_compute_hours')
date_deadline = fields.Date(string='Deadline')