Get Bah
get_bahGet monthly BAH for a military pay grade and permanent duty-station ZIP. Returns tax-free rate, MHA code, and effective date; ensure ZIP is duty station, not residence, for accurate result.
Instructions
Monthly Basic Allowance for Housing for a ZIP code and pay grade.
BAH is a non-taxable allowance. Resolves the ZIP to its Military Housing Area and returns the rate together with the MHA code, the rate set used and its effective date.
The ZIP must be the member's permanent duty station, not where they live. Someone stationed at one installation but living in another housing area still draws the duty station's rate, and a residence ZIP resolves to a different real area and returns a plausible but wrong figure. Where a housing area has an off-cycle adjustment, the most recent applicable rate set is used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | BAH year. Defaults to the most recent loaded. | |
| as_of | No | ISO date (YYYY-MM-DD). Returns the rate set in effect on that date, ignoring later off-cycle adjustments. | |
| zip_code | Yes | 5-digit ZIP code of the member's PERMANENT DUTY STATION, not their home. BAH follows the duty station, so a residence ZIP returns a different, real, wrong housing area. | |
| pay_grade | Yes | Pay grade, e.g. 'E-5', 'O-3', 'O-2E'. | |
| has_dependents | Yes | Whether the member has dependents. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||