This package is a handy wrapper around Opening Hours package that gives you ability to calculate opened hours between two dates.
Tests are the best source of examples.
You can install the package via composer:
composer require websecret/opening-hours-calculator
$ composer test
Web agency based in Minsk, Belarus
The MIT License (MIT)