belun.app Blog
RU

Last updated: December 2, 2026

Methodology: health and money calculators

This page lists the formula, constants, rounding and source behind each calculator on belun.app whose answer touches your health or your money, and what each one does not do. It describes the code as it runs: every example below is computed from the calculator's own code when the site is built, so the numbers here and in the tools are the same.

Who builds and checks the calculators

belun.app is built and maintained by one person, Dmitriy Semenkevich (dimhold). It is not a medical service and not a bank or tax adviser. The calculators do arithmetic on published formulas; a doctor, a lender or an accountant knows things about your case that a formula does not.

The calculation of every tool lives in a separate TypeScript module. These modules and their unit tests are public under the MIT licence in belun-app/tool-engines. The tests run each formula on fixed inputs and compare the output with values worked out from the formula or table in the source, and they cover empty, zero and out-of-range input. Before release, every tool is also opened in a real browser by an automated check, in English and Russian, in light and dark themes and at several screen widths. The "Checked" line in each block below is the date the code was last compared with the source it cites.

If a result looks wrong, use the Report a problem button under the tool. It sends your message, your email if you give one, the page address, the language and the browser string (name, version, system), but not the numbers you typed into the tool. You can also write to [email protected] or open an issue in the tool-engines repository. More about the project is on the About page.

Health calculators

BMI calculator

BMI = weight (kg) ÷ height (m)²

Pounds and feet are converted first (1 lb = 0.45359237 kg, 1 in = 2.54 cm). The category uses the adult cut-offs: under 18.5 underweight, 18.5 to under 25 normal, 25 to under 30 overweight, 30 and above obese. The healthy range is 18.5 × height² to 24.9 × height². BMI and the range are shown to one decimal, and the category is read from the BMI as shown: 76.5 kg at 175 cm is 25.0 on screen and counts as overweight. For 70 kg and 175 cm the BMI is 22.9 and the healthy range is 56.7 to 76.3 kg.

Source
World Health Organization, Obesity: preventing and managing the global epidemic, Technical Report Series 894, 2000.
Not covered
Children and teenagers aged 5 to 19, whom WHO grades by BMI-for-age; age and sex; muscle versus fat; the lower action points that a WHO expert consultation (Lancet, 2004) discusses for Asian populations.
Checked
December 1, 2026 · code and tests

Body fat calculator

men: 495 ÷ (1.0324 − 0.19077 × log10(waist − neck) + 0.15456 × log10(height)) − 450
women: 495 ÷ (1.29579 − 0.35004 × log10(waist + hip − neck) + 0.221 × log10(height)) − 450

All tape measurements are in centimetres (inches × 2.54). The bracket is body density from the U.S. Navy equations, and 495 ÷ density − 450 is Siri's conversion to percent fat. The result is held between 2% and 75% and shown to one decimal. For comparison the page also prints Deurenberg's estimate, 1.2 × BMI + 0.23 × age − 10.8 × (1 for men, 0 for women) − 5.4. The category follows the American Council on Exercise bands (men: under 6% essential fat, 6–13 athletes, 14–17 fitness, 18–24 average, 25 and above obese; women: under 14, 14–20, 21–24, 25–31, 32 and above). A 35-year-old man, 180 cm, 85 kg, neck 39 cm, waist 94 cm gets 21.9% by the tape and 23.3% by Deurenberg.

Source
Hodgdon and Beckett, Naval Health Research Center, 1984: report 84-11 (men) and report 84-29 (women). Deurenberg, Weststrate and Seidell, British Journal of Nutrition, 1991. The ACE bands are quoted as ACE publishes them in its body-fat chart; there is no stable ACE page to link.
Not covered
Children, pregnancy, and a lab measurement such as DEXA: the Navy equations were fitted against underwater weighing of adult sailors and can be off by several percentage points for one person. A body-fat target for your age: the age table that fitness sites credit to Jackson and Pollock could not be found in their papers, so there is none here.
Checked
December 1, 2026 · code and tests

Calorie calculator

BMR = 10 × kg + 6.25 × cm − 5 × age + 5 (men) or − 161 (women)

Daily needs (TDEE) are BMR times an activity factor: 1.2 sedentary, 1.375 light, 1.55 moderate, 1.725 active, 1.9 very active. The loss and gain targets are TDEE minus or plus 250 and 500 kcal a day, labelled about 0.23 and 0.45 kg a week at 7,700 kcal per kilogram (the 3,500 kcal per pound rule). Everything is rounded to whole kilocalories. A 30-year-old woman, 165 cm, 60 kg, moderately active: BMR 1,320 kcal, TDEE 2,046 kcal.

Source
Mifflin, St Jeor and co-authors, American Journal of Clinical Nutrition, 1990; accuracy compared with other equations in Frankenfield, Roth-Yousey and Compher, J Am Diet Assoc, 2005. The paper gives resting energy only; the activity factors are the conventional ones and do not come from it.
Not covered
Body composition, pregnancy and breastfeeding, people under 18. The weekly labels hold only for the first weeks: loss slows as the body adapts (Hall et al., Lancet, 2011).
Checked
December 1, 2026 · code and tests

Pregnancy due date calculator

due date = first day of last period + 280 days + (cycle length − 28)

Every method is turned into a notional last period first. A conception date counts as 14 days of pregnancy, a day-3 embryo transfer as 17 and a day-5 transfer as 19; an ultrasound date counts back by the gestational age on the report. Cycle lengths outside 20–45 days are treated as 20 or 45. Trimesters run to 13 weeks 6 days, then to 27 weeks 6 days, then to the due date; 37 weeks is early term, 39 full term, 42 post-term. A period that started on March 2, 2026 gives December 7, 2026; with a 35-day cycle it is December 14, 2026. A day-5 transfer on March 20 gives December 6, 2026, 261 days later.

Source
American College of Obstetricians and Gynecologists, Committee Opinion 700, Methods for Estimating the Due Date, 2017, and Committee Opinion 579, Definition of Term Pregnancy, 2013.
Not covered
The calculator does not choose between methods. ACOG keeps the period date unless an early scan differs by more than a set number of days (5 before 9 weeks, 7 from 9 to 13 weeks 6 days, more later); the date on your medical record is the one that counts.
Checked
December 1, 2026 · code and tests

Ovulation calculator

ovulation = period start + (cycle length − luteal phase)

The luteal phase defaults to 14 days and can be set from 9 to 17; the cycle is held to 20–45 days and the period to 1–10. Ovulation is never placed on a day of bleeding. The fertile window is the five days before ovulation plus ovulation day; the next period is the start plus one cycle; the earliest useful test date is 14 days after ovulation; a due date for that cycle is ovulation + 266 days. With the default luteal phase that puts ovulation 14 days after the period starts on a 28-day cycle, which is cycle day 15. A period starting March 2, 2026 with a 28-day cycle gives ovulation on March 16 and a window of March 11 to March 16; with a 35-day cycle ovulation moves to March 23.

Source
Wilcox, Weinberg and Baird, New England Journal of Medicine, 1995 (six-day fertile window; it gives the day-by-day odds on the tool page, and no pregnancy in the study came from intercourse after ovulation day); Wilcox, Baird and Weinberg, NEJM, 1999 (implantation 6 to 12 days after ovulation).
Not covered
Contraception: this is a calendar estimate from an average cycle. It does not read ovulation tests, temperature or mucus, and does not learn from past cycles, so irregular cycles get wide errors.
Checked
December 1, 2026 · code and tests

Sleep calculator

bedtime = wake-up time − cycles × cycle length − time to fall asleep

Defaults are 90-minute cycles and 15 minutes to fall asleep; you can set 60–120 and 0–180 minutes. Options whose sleep falls inside the recommended hours for the chosen age (7–9 for adults) are marked. For a 7:00 am alarm the options are 9:45 pm (6 cycles), 11:15 pm (5 cycles), 12:45 am (4 cycles), 2:15 am (3 cycles).

Source
Hours by age: Hirshkowitz et al., National Sleep Foundation, Sleep Health, 2015. Cycle length: Cajochen et al., Sleep Health, 2024, where the median cycle was 96 minutes, not 90. The tool page lists the rest.
Not covered
Your own cycle length, which varies between people and through the night; sleep disorders.
Checked
December 1, 2026 · code and tests

Money calculators

Loan calculator

payment = P × r × (1 + r)ⁿ ÷ ((1 + r)ⁿ − 1)

P is the amount, r the annual rate ÷ 12 ÷ 100, n the term in months (years × 12, rounded). At 0% the payment is P ÷ n. The payment is rounded to the cent; each month's interest is the balance × r, also rounded, and the last payment settles whatever is left, so it can differ by a few cents. $10,000 at 7% for 3 years: $308.77 a month, $1,115.76 of interest.

Source
The standard fixed-rate annuity formula; it gives the same payment as the PMT function in a spreadsheet.
Not covered
Fees and insurance, so the rate here is not an APR as US lenders must disclose it (Regulation Z, § 1026.22); daily interest accrual; early repayment; declining-balance (differentiated) payments.
Checked
December 1, 2026 · code and tests

Mortgage calculator

Principal and interest use the loan formula above on the price minus the down payment. Property tax and home insurance are the yearly amounts ÷ 12; HOA is added as entered. PMI is the loan × the PMI rate ÷ 12, charged only when the down payment is under 20% of the price. It stops after the payment that brings the scheduled balance to 78% of the price, or after the payment at the midpoint of the term if that comes first. A $350,000 home with $70,000 down at 6.5% for 30 years, $3,600 tax and $1,400 insurance a year: $1,769.79 principal and interest, $2,186.46 in total. With $35,000 down and PMI at 0.5% of the loan, PMI is in the first 109 payments, $14,306.25 in all.

Source
Payment: the annuity formula. PMI rules: Consumer Financial Protection Bureau, When can I remove PMI from my loan?
Not covered
Cancelling PMI on request at 80% of the original value, which needs a request and a good payment record; an appraisal below the price, which lowers the original value and keeps PMI longer; FHA mortgage insurance, which has its own rules. Adjustable rates, points, closing costs and changes to tax or insurance over time are not modelled either.
Checked
December 1, 2026 · code and tests

Compound interest calculator

A = P × (1 + r/n)^(n·t)

The balance is stepped month by month at the monthly rate equal to your compounding, (1 + r/n)^(n/12) − 1, so the starting amount grows exactly by the formula above. Contributions are added every 1, 3, 6 or 12 months, at the end of the period or, if you choose, at its start. The term is counted in whole months and capped at 100 years; the effective annual rate is (1 + r/n)^n − 1. Only the shown figures are rounded to the cent. $10,000 at 5% with monthly compounding for 10 years grows to $16,470.09.

Source
The compound interest formula; no external constants.
Not covered
Taxes and inflation (the Russian page has an optional tax on deposit interest), fees, day-count rules that banks use for actual days in a month.
Checked
December 1, 2026 · code and tests

Salary to hourly calculator

hourly = annual pay ÷ (hours per week × 52)

The year is 52 weeks, 26 biweekly and 24 semi-monthly periods, 12 months, 4 quarters. The adjusted figures multiply the year by worked days ÷ scheduled days, where holidays and vacation are unpaid. Amounts are rounded to the cent. A $75,000 salary at 40 hours a week is $36.06 an hour over 2,080 hours.

Source
A payroll convention, not a law. US federal pay is one exception: it divides the annual rate by 2,087 hours (5 U.S.C. § 5504).
Not covered
Taxes and deductions (all figures are gross), overtime, the 52.18 weeks of a real year.
Checked
December 1, 2026 · code and tests

Sales tax calculator

tax = price × rate ÷ 100; price before tax = total ÷ (1 + rate ÷ 100)

The tax is rounded half up to the cent in exact decimal arithmetic, and the total is the price plus that rounded tax. In reverse mode the price before tax is rounded and the tax is the remainder, so the three figures always add up. State, county and city rates are added, not compounded. $50 at 8.25% is $4.13 tax; a $107.25 receipt at 7.25% holds $7.25 of tax.

Source
State and average local rates: Tax Foundation, State and Local Sales Tax Rates, Midyear 2026, state rates as of July 1, 2026, with the third decimal of the statute kept where the source rounds it.
Not covered
Exempt or reduced-rate goods, tax rounded per line instead of per receipt, resort and other special district taxes, and rates for a specific address.
Checked
December 1, 2026 · code and tests

Time card calculator

pay = regular hours × rate + overtime hours × rate × multiplier

Hours are kept in whole minutes until the end. Punches can be rounded to the nearest 5, 6, 10 or 15 minutes, ties going up; a punch-out earlier than the punch-in is read as a shift past midnight; unpaid breaks are subtracted. Daily overtime is time past the daily threshold; weekly overtime is regular time past the weekly threshold, so no hour counts twice. An optional second step pays overtime past a set number of hours at a higher multiplier. Two days, 8:00 to 19:30 and 9:00 to 17:30, each with a 30-minute break, at $20 an hour with daily overtime after 8 hours: 19 hours, 3 of them overtime, $410 gross.

Source
Weekly overtime: Fair Labor Standards Act, 29 U.S.C. § 207. Rounding: 29 CFR § 785.48. Daily overtime: California Labor Code § 510.
Not covered
California's seventh-day rule, holiday and shift premiums, exempt employees, taxes. The thresholds and multipliers are whatever you enter.
Checked
December 1, 2026 · code and tests

Tip calculator

tip = bill × percent ÷ 100; total = bill + tip

The tip and the total are rounded to the cent, then each per-person share is rounded on its own, so the shares can add up to a cent more or less than the total. A $85.40 bill at 18% for 3 people: tip $15.37, total $100.77, $33.59 each.

Source
Percentage arithmetic; the tool does not suggest a customary rate.
Checked
December 1, 2026 · code and tests

Discount calculator

final price = price × (1 − first% ÷ 100) × (1 − second% ÷ 100)

A second discount applies to the already reduced price, so two discounts do not add up. Percentages are held to 0–100, results rounded to the cent. $120 with 25% off and an extra 10% costs $81: 32.5% off in total, not 35%. The reverse mode gives (old − new) ÷ old.

Source
Percentage arithmetic.
Not covered
Sales tax; the sales tax calculator handles tax on a discounted price.
Checked
December 1, 2026 · code and tests

Burn rate calculator

net burn = monthly spend − monthly revenue; runway = cash ÷ net burn

Revenue and spend each grow by their own monthly rate, and the cash balance is carried month by month for up to 60 months. Runway is the point where the balance reaches zero, interpolated inside the last month and shown to one decimal. $600,000 in the bank, $20,000 of revenue and $80,000 of spend a month: net burn $60,000, runway 10.0 months.

Source
No standard body defines burn or runway; the tool uses the cash definitions common in startup finance.
Not covered
One-off payments, hiring plans, debt, taxes, anything that does not follow one growth curve.
Checked
December 1, 2026 · code and tests

Currency converter

result = amount × (rate of target ÷ rate of source)

Both rates come from one table against the US dollar, so any pair works through it. The result is formatted with the currency's usual decimals; rates show up to four decimals, or four significant digits below 1. The page shows the update time that came with the table and links the service that supplied it.

Source
ExchangeRate-API open endpoint, updated once a day. If it does not answer, Frankfurter, which publishes central-bank reference rates and has far fewer currencies.
Not covered
Live market quotes, bank or card fees and spreads. The rate is a daily reference, not what an exchange office will pay.
Checked
December 1, 2026 · code and tests