Data Sources & Methodology
Every dataset on Beforeview comes from US government or peer-reviewed nonpartisan sources. Below is the full list with refresh cadence and the formula behind each calculator.
Datasets
- InflationBureau of Labor StatisticsRefresh: Annual averages (monthly CPI-U updated by BLS around the 10th of each month)Used on: /inflation, /inflation/charts, /inflation/[slug]
- Historical price anchorsCensus/HUD + BEA + EIA + USPS + USDA NASSRefresh: Periodic snapshot; verified against primary agency sourcesUsed on: /inflation/[slug]
- IncomeUS Census BureauRefresh: Annual (ACS 1-year estimates released each September)Used on: /income-percentile, /income-percentile/state, /income-percentile/[state]/[income]
- Occupations & wagesUS Bureau of Labor StatisticsRefresh: Annual (BLS releases May data each spring)Used on: /income-percentile/[state]/[income]
- RentUS Census BureauRefresh: AnnualUsed on: /rent, /rent/[state], /take-home-pay/[state]/[salary]
- Home valuesUS Census BureauRefresh: AnnualUsed on: /take-home-pay/[state]/[salary]
- Mortgage ratesFreddie MacRefresh: WeeklyUsed on: /take-home-pay/[state]/[salary]
- Federal taxesInternal Revenue ServiceRefresh: Annual (IRS releases inflation-adjusted brackets each November)Used on: /tax-brackets, /tax-brackets/[year], /tax-brackets/[year]/[state], /take-home-pay, /calc/salary
- State income taxTax Foundation + state DORRefresh: AnnualUsed on: /tax-brackets/state, /take-home-pay/[state]/[salary]
- State tax quirks & historyState DORs + Tax Foundation + Bloomberg TaxRefresh: Annual + on legislative changesUsed on: /tax-brackets/[year]/[state]
- Property taxTax Foundation + Lincoln InstituteRefresh: AnnualUsed on: /tax-brackets/[year]/[state]
- Sales taxTax FoundationRefresh: AnnualUsed on: /sales-tax, /sales-tax/[state], /sales-tax/calculator
- Sales tax exemptionsState DORs + Tax Foundation + FTARefresh: Annual + on legislative changes (state DOR is authoritative)Used on: /sales-tax/[state]/[city]
- HolidaysUS Office of Personnel ManagementRefresh: Static (rules in federal statute)Used on: /holidays, /holidays/[year]
- ElectricityUS Energy Information AdministrationRefresh: MonthlyUsed on: /ev-charging, /ev-charging/[state]
- GasolineUS Energy Information AdministrationRefresh: WeeklyUsed on: /ev-charging/[state]
- EV efficiencyEPARefresh: Annual (with each model year)Used on: /ev-charging/[state], /ev-charging/[state]/[vehicle]
- EV state incentivesDOE AFDC + DSIRE + state DMV/DEEPRefresh: Periodic (programs change frequently — link to official source per state)Used on: /ev-charging/[state]/[vehicle]
- DC fast charging ratesNetwork operators (aggregate)Refresh: Annual (rates change quarterly; tracked as state averages)Used on: /ev-charging/[state]/[vehicle]
- Federal EV tax creditIRSRefresh: Annual + on legislative changesUsed on: /ev-charging/[state]/[vehicle]
- OvertimeUS Department of LaborRefresh: On rule change (federal). State rules updated as published by state labor departments.Used on: /overtime, /overtime/[state]
- LotteryNew York State (data.ny.gov)Refresh: Daily (after each drawing). Cron at 12:00 UTC.Used on: /lottery, /lottery/powerball, /lottery/mega-millions
Formulas
- Inflation calculatorvalue_to = amount × (CPI_to / CPI_from)CAGR = (CPI_to / CPI_from)^(1/years) − 1.
- Take-home paynet = gross − federal − state − social_security − medicareFederal: progressive brackets (IRS). State: flat or top-marginal. Social Security: 6.2% up to $176,100. Medicare: 1.45% (+0.9% over threshold).
- Home affordability (28% rule)max_home_price = present_value(monthly_payment, rate/12, term_months); monthly_payment = (gross/12 × 0.28) × 0.7528% rule: housing costs ≤ 28% of gross income. We reserve 25% of the housing budget for property tax + insurance + HOA, leaving 75% for principal + interest. Excludes down payment, PMI, points.
- Rent burdenburden = (annual_rent / net_pay) × 100HUD classifies >30% as cost-burdened, >50% as severely cost-burdened. State medians smooth over metro/rural divergence — metro markets typically run 20-50% above state median.
- Mortgage paymentM = P × r(1+r)^n / ((1+r)^n − 1)P = principal, r = monthly rate, n = months. Does not include taxes, insurance, HOA or PMI.
- EV home charging costcost_per_100mi = (kWh_per_100mi / 100) × ¢_per_kWhReal-world cost varies with charger efficiency (~10% loss), weather, driving conditions.
- Rent affordability (30% rule)max_rent_monthly = gross_annual / 12 × 0.3025% rule is a more conservative variant. Real eligibility depends on landlord and lender criteria.
- Income percentile (state-adjusted)adjusted_income = income / (state_median / national_median); percentile = US distribution lookupCost-of-living-adjusted comparison. Real state percentile distributions vary by source.
- Occupation matchingoccupations whose median wage falls within ±15% of the queried income, sorted by absolute distanceCareer stage labels: entry ≈ 25th pct, mid = BLS median, senior ≈ 75th pct of the same SOC code. National medians — metro/state variance can run ±30%.
Data freshness:State tax rates, EV incentive programs, and sales tax holidays change frequently — sometimes mid-year. We update on a quarterly cadence and link to each agency's official source. Before any decision with real money on the line (relocation, vehicle purchase, large purchase), verify with the linked authoritative source.
Corrections: If you spot a data error, please write to [email protected]with the page URL and the issue. Public US government data is reused under each agency's open-data policy.