{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/12"}],"enrichment":{"capability":"Calculates business duration between two dates by excluding weekends, public holidays, and non-business hours, returning results in days, hours, minutes, or seconds.","skillfed_tags":["business-calendar","time-calculation","sla-tracking"],"use_cases":["Calculate SLA response or resolution times for support tickets, excluding nights and weekends.","Measure project task duration in business days for resource planning and reporting.","Batch-process a DataFrame of ticket timestamps to compute business hours elapsed per row.","Generate business-day-aware time metrics for compliance or audit reporting.","Build custom business calendars with state-specific or company-specific holidays."],"what_it_does":"Business-Duration is a utility for calculating elapsed time between two dates while respecting business calendars. It excludes weekends, public holidays, and hours outside a defined business window (e.g., 9 AM to 5 PM), returning the result in your choice of unit: days, hours, minutes, or seconds. The package accepts start and end dates as Python datetime objects, optional custom holiday lists, and a weekend definition, making it useful for SLA tracking, ticket resolution times, or any scenario where you need to measure only active business time.\n\nThe package depends on numpy and pandas for its core operations. It integrates with the holidays library to handle public holiday calendars and works with both single date pairs and vectorized operations over pandas DataFrames. The implementation is straightforward: you pass datetime objects, business hours, holidays, and a unit, and receive a numeric result representing business duration in that unit.","worth_installing":"Yes, if you need business-duration calculations and can tolerate high install friction from numpy/pandas dependencies. The package is stable and permissively licensed, but maintenance is aging\u2014last commit in 2020 with infrequent updates. Suitable for production use in SLA tracking or business-time reporting; consider it a mature utility rather than an actively developed project. No known security vulnerabilities."},"id":"business-duration","links":{"html":"https://skillfed.io/packages/business-duration","md":"https://skillfed.io/packages/business-duration.md","pypi":"https://pypi.org/project/business-duration/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-10-12","license_spdx":null,"license_treatment":"permissive","name":"business-duration","python_support":"unspecified","summary":"Calculates business duration in days, hours, minutes and seconds by excluding weekends, public holidays and non-business hours"},"popularity":{"monthly_downloads":74128,"position":14874,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.68"}
