Full-Time Equivalent API¶
FullTimeEquivalent ¶
Calculate federal civilian full-time equivalents under OMB methods.
Purpose
Computes budgetary FTEs from regular straight-time hours using either the regular method or the pay-period method described in OMB Circular No. A-11, section 85. The class also derives the regular-method denominator for the selected federal fiscal year.
Input hours should include annual leave, sick leave, compensatory time off, and other approved leave. They should exclude overtime, holiday hours worked, and terminal leave. The class performs arithmetic only; callers remain responsible for classifying source hours correctly.
Attributes:
| Name | Type | Description |
|---|---|---|
fiscal_year |
int
|
Ending calendar year of the federal fiscal year. |
start_date |
date
|
October 1 start of the fiscal year. |
end_date |
date
|
September 30 end of the fiscal year. |
hours_per_day |
Decimal
|
Regular-method hours assigned to each weekday. |
compensable_days |
int
|
Monday-through-Friday days in the fiscal year. |
compensable_hours |
Decimal
|
Regular-method FTE denominator. |
method |
str
|
Method used by the most recent calculation. |
regular_hours |
Decimal
|
Numerator used by the most recent calculation. |
fte |
Decimal
|
Result of the most recent calculation without forced rounding. |
Note
This class applies to civilian FTE reporting. OMB instructs agencies to report active-duty military personnel using average strength instead of FTEs.
Initialize an FTE calculator for a federal fiscal year.
Purpose
Builds the fiscal-year date range and computes its regular-method compensable days and hours. Federal fiscal year 2026, for example, runs from October 1, 2025 through September 30, 2026.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fiscal_year
|
int
|
Four-digit ending year of the federal fiscal year. |
required |
hours_per_day
|
int | float | Decimal
|
Straight-time hours assigned to each Monday-through-Friday compensable day. Defaults to 8. |
8
|
Returns:
| Name | Type | Description |
|---|---|---|
None |
None
|
Initialization stores the fiscal-year denominator and empty result state on the instance. |
Raises:
| Type | Description |
|---|---|
ValueError
|
|
TypeError
|
An argument has an unsupported type. |
Source code in fiscal\fte.py
Attributes¶
PAY_PERIOD_COMPENSABLE_HOURS
class-attribute
instance-attribute
¶
hours_per_day
instance-attribute
¶
hours_per_day: Decimal = to_decimal(
"hours_per_day", hours_per_day
)
compensable_hours
instance-attribute
¶
Methods:¶
regular_method ¶
Calculate FTEs using OMB's regular method.
Purpose
Divides regular straight-time hours worked from October 1 through September 30 by the compensable hours in the same fiscal year. Compensable hours equal Monday-through-Friday days multiplied by the configured hours per day; federal holidays do not reduce the denominator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
regular_hours
|
int | float | Decimal
|
Qualifying straight-time hours for the fiscal year. Zero is valid. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Decimal |
Decimal
|
Calculated FTE value without forced rounding. |
Raises:
| Type | Description |
|---|---|
ValueError
|
|
TypeError
|
|
Source code in fiscal\fte.py
pay_period_method ¶
Calculate FTEs using OMB's pay-period method.
Purpose
Divides regular straight-time hours from the 26 biweekly pay periods ending in the fiscal year by 2,080. When 27 pay periods end in a fiscal year, OMB requires the caller to omit the period with the fewest workdays within that fiscal year before supplying the remaining 26-period total.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
selected_regular_hours
|
int | float | Decimal
|
Qualifying straight-time hours from the 26 selected pay periods. Zero is valid. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Decimal |
Decimal
|
Calculated FTE value without forced rounding. |
Raises:
| Type | Description |
|---|---|
ValueError
|
|
TypeError
|
|
Source code in fiscal\fte.py
hours_for_regular_fte ¶
Return the regular-method hours represented by an FTE amount.
Purpose
Converts a planned or reported FTE level to the corresponding number of regular straight-time hours for this fiscal year's denominator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fte
|
int | float | Decimal
|
Nonnegative FTE amount to convert. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Decimal |
Decimal
|
Required regular-method hours without forced rounding. |
Raises:
| Type | Description |
|---|---|
ValueError
|
|
TypeError
|
|
Source code in fiscal\fte.py
hours_for_pay_period_fte ¶
Return the pay-period-method hours represented by an FTE amount.
Purpose
Converts a planned or reported FTE level to qualifying straight-time hours using OMB's fixed 2,080-hour pay-period denominator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fte
|
int | float | Decimal
|
Nonnegative FTE amount to convert. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Decimal |
Decimal
|
Required pay-period-method hours without forced rounding. |
Raises:
| Type | Description |
|---|---|
ValueError
|
|
TypeError
|
|
Source code in fiscal\fte.py
to_dict ¶
Return the calculator state as a serializable mapping.
Purpose
Provides the fiscal-year denominator and most recent result in a stable mapping suitable for application responses, reports, or data-frame rows. Decimal values are emitted as strings so serialization does not silently lose precision.
Returns:
| Type | Description |
|---|---|
Dict[str, object]
|
Dict[str, object]: Fiscal-year dates, denominator, method, input hours, and calculated FTE. |
Source code in fiscal\fte.py
count_weekdays ¶
Count Monday-through-Friday days in the fiscal-year date range.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Inclusive weekday count used by the regular-method denominator. |
Source code in fiscal\fte.py
nonnegative_decimal
classmethod
¶
Validate and normalize a nonnegative decimal argument.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Argument name used in validation messages. |
required |
value
|
int | float | Decimal
|
Numeric value to normalize. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Decimal |
Decimal
|
Validated nonnegative value. |
Raises:
| Type | Description |
|---|---|
ValueError
|
The value is empty, non-finite, or negative. |
TypeError
|
The value is Boolean or not numeric. |
Source code in fiscal\fte.py
nonnegative_hours
classmethod
¶
Validate and normalize an hours argument.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
int | float | Decimal
|
Hours value to normalize. |
required |
name
|
str
|
Argument name used in validation messages. |
'regular_hours'
|
Returns:
| Name | Type | Description |
|---|---|---|
Decimal |
Decimal
|
Validated nonnegative hours. |
Raises:
| Type | Description |
|---|---|
ValueError
|
The value is empty, non-finite, or negative. |
TypeError
|
The value is Boolean or not numeric. |