# bokmann/business_time

Support for doing time math in business hours and days

Repository: https://github.com/bokmann/business_time
Canonical: https://ross.abutalabs.com/products/business_time
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-04-19T00:33:07+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 78, release rhythm 8, longevity 100
- inputs: {"age_days": 5986, "days_push": 137, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1330, forks 217 (observed 2026-08-28T04:04:23.968660+00:00)

## What it is
A Ruby gem that extends ActiveSupport's time math helpers to account for business hours, business days, weekends, and holidays. It lets developers compute offsets like '8 business hours from now' or durations between dates in working time.

## Use cases
- calculate sla response times in business hours
- add business days to a date skipping weekends and holidays
- check if a date is a workday
- measure business time elapsed between two timestamps
- configure custom work weeks and holiday calendars
- estimate ticket resolution deadlines in working hours

## When to choose
- you're building a Ruby or Rails app that needs business-hours-aware date arithmetic
- you need configurable holidays, work weeks, or per-day business hours
- you want a lightweight, mature gem for SLA or deadline calculations

## When to avoid
- you're not working in Ruby
- you need timezone-database-aware scheduling or recurring event calendars rather than simple business-time math
- you need a full scheduling or calendar service with persistence

## Facets
- artifact type: library
- maturity: stable
- function: date-time, sdk
- domain: developer-tools
- platform: ruby
- tags: business-hours, time-math, activesupport, holidays, work-week, sla-calculation, automation

## Member repositories
- bokmann/business_time (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:23.968660+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:45:30.584223+00:00, confidence not recorded.
  - readme: https://github.com/bokmann/business_time (fetched 2026-08-28T04:04:23.968660+00:00, sha 597bb6a05312)
- Data as of 2026-08-30T08:39:29.467469+00:00.
