On Wed, Aug 28, 2019 at 12:27 AM stan <stanb@xxxxxxxxx> wrote: > Any thoughts as to the best way to approach this? I've written a couple of functions to compute working hours depending on a possible per-day hour template. Another possible implementation besides the other proposed solutions. <https://github.com/fluca1978/fluca1978-pg-utils/blob/master/examples/functions/working_hours.sql> Luca