Business Hours Calculator
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Business Hours Calculator is a floating calculator panel that computes the number of business hours between two dates and times. Enter start and end dates, set business hours (e.g., 9am to 5pm), and add holidays. The panel calculates total business hours, total days, business days, weekend days, and holiday days. Hours are prorated on the start and end dates based on the time of day.
WHERE IT RUNS
This script runs on any website you visit. It reads only the page you are looking at, never other tabs, bookmarks, or browser data. All data stays in your browser — nothing is sent anywhere.
HOW TO USE
Click the Business Hours Calculator panel button in the BotGentz extension toolbar. The panel appears at the edge of the page. Enter start and end dates/times. Set your business hours (start and end hour). Add holidays by entering a date and clicking "Add". The panel updates instantly — showing total business hours, total days, business days, weekend days, and holiday days. Use "Copy Results" to copy the full breakdown to your clipboard. Holidays are saved per site.
TECHNICAL MECHANISM
The calculator iterates through each day in the date range, checking if it's a weekend (Saturday or Sunday) or a holiday. Business hours are counted only on weekdays that are not holidays. For the first and last day, hours are prorated based on the time of day relative to business hours. Total business hours = sum of full business days × hours per day + prorated first day + prorated last day. Holidays are stored as timestamps and persisted using GM_setValue. All calculations run client-side in pure JavaScript.
THE PANEL
The panel is a floating overlay that you can drag anywhere on the screen by its header. It remembers its position per site so it reappears where you left it. The panel can be collapsed into a small handle to get it out of the way, and snapped to the edge of the page. It can be resized to fit your workflow. Press Escape to close the panel.
PLEASE NOTE
This script requires the free BotGentz extension to run. All data stays in your browser — nothing is transmitted or shared. The panel works on any website. The calculator is for estimation purposes only — actual business hours may vary based on time zones and other factors. Sites change — the script may need updates to match new site structures.