time calculation between two dates for business hours and business days

I have a working hours set to 8:30 AM to 7PM EST, it should calculate only these hours for business days and remaining non working hours or non business days should not calculate.

Example: requests submitted only calculate from monday-friday 8:30 AM to 7:00 PM ET.

  • A request created on sunday 3PM. the clock starts at monday 8:30 AM
  • A request created on Tuesday 6:45 PM. the clock starts at tuesday 6:45 PM/ pauses at tuesday 7:00 PM/ resumes at wednesday 8:30 AM.

Earlier we had a plugin called calendar functions but now its archived, is there any other alternative way to do? 

  Discussion posts and replies are publicly visible