Back to all topics

Everyday calculations and financial assumptions

A calculator evaluates the assumptions you enter. Discounts, taxes, interest and loan payments can change when the order of operations or timing changes. The tools below make the arithmetic easier; the guides explain which inputs must be checked before using a result.

Suggested workflow

  1. Write down the units, period, rate and order of operations before entering values.
  2. Test a simple case whose answer you know, such as zero interest or a single discount.
  3. Check rounding and compare totals with the terms that apply to your actual task.

What to check

Annual rates are not monthly rates. Sequential discounts multiply rather than add. Financial projections depend on timing and assumptions; health-related estimates do not replace individual assessment.

Age Calculator

Calculate calendar age, total elapsed calendar days and days until the next birthday for a chosen reference date.

Suggested workflow

Enter the birth date and reference date, or choose Today. January 31 to March 1, 2025 is 0 years, 1 month and 1 day, with 29 elapsed days.

What to check

Birth must be on or before the reference date, within years 0001–9999. Month-end anniversaries use the last available day; February 29 uses February 28 in non-leap years. A birthday today has zero days remaining.

Example · Age Calculator

Input

{"birth":"2025-01-31","reference":"2025-03-01"}

Output

{"years":0,"months":1,"days":1,"totalDays":29}
Open tool · Age Calculator

BMI Calculator

Calculate BMI as kilograms divided by height in metres squared, using Chinese adult classification thresholds of 18.5, 24 and 28.

Suggested workflow

Enter 170 cm and 65 kg for a displayed BMI of 22.5. Height accepts 50–250 cm and weight 10–300 kg. Empty or out-of-range fields hide the result until corrected.

What to check

Categories use the unrounded value; the display rounds to one decimal, so equal-looking boundary values can have different categories. Intended for initial adult reference; children and pregnancy need appropriate assessment. BMI does not directly measure body fat.

Example · Result

Input

{"weight":65,"height":170}

Output

22.5
Open tool · BMI Calculator

Percentage Calc

Calculate a percentage of a number, a part as a percentage of a base, or a change between two values. Change divides the difference by the absolute original value, retaining direction for negative starting values.

Suggested workflow

Enter 25 and 200 in the first panel for 50; enter 80 and 200 in the second for 40%; change 80 to 100 in the third for +25%. Panels calculate independently. Copy retains the sign and uses an ungrouped number.

What to check

Decimal points and e notation are accepted: at most 18 integer and 12 fractional digits after expansion, within 128 input characters. A zero base or original makes its ratio undefined. Display and copy use up to 12 significant digits.

Example · Percentage change

Input

{"from":"80","to":"100"}

Output

+25%
Open tool · Percentage Calc

Loan Calculator

Compare level-payment and equal-principal loans, including total interest, total repayment, the first 12 instalments and the final instalment.

Suggested workflow

Principal 1200, annual rate 0% and one year give monthly payment 100, zero interest and zero final balance. Switch methods for an interest-bearing loan; equal-principal mode shows the first payment.

What to check

Accepts 1–30 whole years, positive principal and nonnegative annual rates divided by 12. Excludes fees, early repayment and variable rates. Calculations use floating point and display two decimals, which can differ from a lender’s period-by-period rounding.

Example · Monthly payment

Input

{"principal":1200,"rate":0,"months":12}

Output

{"monthly":100,"interest":0,"total":1200}
Open tool · Loan Calculator

Discount Calc

Calculate the original order total, payment and savings from a unit price, quantity, percentage discount and one fixed order deduction. A discount of 20 means 20% off, leaving 80% of the price to pay.

Suggested workflow

A price of 200, discount of 20%, quantity of 2 and order deduction of 30 give original total 400.00, payment 290.00 and savings 110.00. Round unit price, multiply by quantity, round the percentage reduction result, then subtract the fixed deduction once.

What to check

Quantity is a positive whole number of up to 18 digits; discount is 0–100% and amounts are nonnegative. Choose 0–6 decimal places; exact ties round away from zero. Payment stops at zero and savings equal original total minus payment. Unit labels do not convert currencies.

Example · Final payment

Input

{"price":"200","rate":"20","quantity":"2","deduction":"30"}

Output

{"original":"400.00","final":"290.00","saved":"110.00"}
Open tool · Discount Calc

Date Difference

Count calendar days, Monday–Friday days and weeks between two Gregorian dates, keeping the direction of the interval for project timelines and schedules.

Suggested workflow

Choose the start and end dates. March 6–9, 2026 spans 3 days and contains 1 Monday–Friday day. Swap the dates to see the negative interval.

What to check

Years 0001–9999 are supported; weeks equal days divided by seven. Count Monday–Friday from the earlier date, inclusive, to the later date, exclusive. Reverse intervals negate that count. Public holidays falling on weekdays are included.

Example · Date Difference

Input

{"from":"2026-03-06","to":"2026-03-09"}

Output

{"days":3,"weekdays":1}
Open tool · Date Difference

Timezone Converter

Convert a civil date and time from its source zone to any IANA target, alongside ten common zones. Rows share one instant and show milliseconds and UTC offsets.

Suggested workflow

For example, 2024-01-01 08:00 in Asia/Shanghai is 00:00 UTC. Enter another IANA name to add a target. Current Time fills the clock and date in the selected source zone.

What to check

Rules apply to the chosen date, so summer and winter offsets can differ. Daylight-saving changes can repeat or omit local times; the default reports the ambiguity, while earlier and later choices resolve it explicitly.

Example · Source time zone

Input

{"date":"2024-01-01T08:00","zone":"Asia/Shanghai"}

Output

2024-01-01T00:00:00.000Z
Open tool · Timezone Converter

Compound Interest

Estimate a balance with monthly compounding and contributions at each month end. Compare final balance, contributions and interest in one consistent currency unit.

Suggested workflow

Principal 1000, annual rate 0%, one year and monthly contribution 100 give a balance and contributions of 2200, with zero interest. Zero years returns the initial principal without contributions.

What to check

Accepts 0–80 whole years and finite nonnegative amounts and rates. Monthly rate is annual rate divided by 12; contributions follow that month’s interest. Excludes tax, fees, inflation and rate changes; an estimate does not guarantee returns.

Example · Final value

Input

{"principal":1000,"rate":0,"years":1,"monthly":100}

Output

{"final":2200,"contributed":2200,"interest":0}
Open tool · Compound Interest

Profit Margin

Profit is revenue minus cost. Profit margin divides that profit by revenue, while markup divides it by cost. The same profit therefore produces different percentages under these two measures.

Suggested workflow

Revenue of 125 and cost of 100 give profit 25.00, margin 20% and markup 25%. Amounts round first to the chosen 0–6 decimal places. Keep revenue and cost in the same unit and on the same pricing basis.

What to check

Amounts are nonnegative, with at most 18 integer and 12 fractional digits after expansion. Zero revenue makes margin undefined; zero cost makes markup undefined. Zero profit remains copyable. Changing the unit label performs no currency conversion.

Example · Profit

Input

{"revenue":"125","cost":"100"}

Output

{"profit":"25.00","margin":20,"markup":25}
Open tool · Profit Margin

Sales Tax

Add tax to a net amount or extract it from a gross total using a manually supplied percentage. Inclusive mode calculates net as gross divided by one plus the rate expressed as a fraction.

Suggested workflow

Choose inclusive mode with amount 110 and rate 10 to obtain net 100.00, tax 10.00 and gross 110.00. In exclusive mode, enter the net amount; the calculated tax is added to it for the gross total.

What to check

Amount and rate are nonnegative, allowing 18 integer and 12 fractional digits after expansion. Choose 0–6 amount decimals. Input amounts round first; inclusive tax is the difference, keeping displayed net plus tax equal to gross. Supply the rate yourself; the unit is only a label.

Example · Extract tax from gross

Input

{"price":"110","rate":"10"}

Output

{"net":"100.00","tax":"10.00","gross":"110.00"}
Open tool · Sales Tax

GPA Calc

Calculate a credit-weighted percentage average and a separate example five-band 4.0 GPA, converting each course before weighting its points.

Suggested workflow

A three-credit course at 90 and a one-credit course at 80 give average 87.50 and GPA 3.75. Add, remove, load examples or clear courses. Zero-credit courses have no weight.

What to check

Up to 200 courses, scores 0–100, credits 0–1000 and positive total credits. Thresholds 90/80/70/60 map to 4/3/2/1/0 before weighting. A percentage average is not itself GPA. Institutions differ; this result follows the explicitly displayed example scale.

Example · Weighted average

Input

[{"score":90,"credits":3},{"score":80,"credits":1}]

Output

{"average":87.5,"gpa":3.75,"credits":4}
Open tool · GPA Calc

PPI Calc

Enter a rectangular screen’s pixel resolution and diagonal in inches to calculate PPI, exact total pixels, megapixels and aspect ratio.

Suggested workflow

Enter 3840 × 2160 and 27 inches for 163.18 PPI, 8294400 pixels and 16:9. Switch presets or enter a diagonal below one inch, then copy the density value.

What to check

Use integer pixel resolution and the physical diagonal of the same rectangular screen area in inches. The total pixel count must remain a safe integer. Ordinary densities show two decimals; very small or large values use scientific notation rather than rounding a nonzero result to zero.

Example · Pixel density (PPI)

Input

{"width":3840,"height":2160,"diagonalInch":27}

Output

163.18 PPI
Open tool · PPI Calc

Sleep Cycles

Compare clock schedules by subtracting three to six 90-minute units from a wake time. Each result shows the clock time, day relation and sleep duration.

Suggested workflow

For 07:00 with 15 minutes to fall asleep, six units give 21:45 on the previous day. The other options are 23:15, 00:45 and 02:15.

What to check

Use 24-hour time and 0–60 whole minutes to fall asleep. Arithmetic follows wall-clock minutes; a schedule crossing a daylight-saving change needs the date and local time-zone rules to determine elapsed time.

Example · Sleep Cycles

Input

{"wake":"07:00","fallAsleepMinutes":15}

Output

21:45 · 23:15 · 00:45 · 02:15
Open tool · Sleep Cycles

Salary Convert

Convert annual, monthly, weekly, daily and hourly income, with minute and second rates for paid working time.

Suggested workflow

Annual pay 26000 with 20 hours per week and 52 weeks gives 25 per hour, 200 per day and 500 per week. Enter daily pay 200 to recover the same annual amount.

What to check

A day always means eight working hours; a month is annual pay divided by 12. Weekly hours must exceed zero and be at most 168; yearly weeks at most 53. Currency symbols do not convert exchange rates. Taxes, insurance and leave are excluded.

Example · per hour

Input

{"annual":26000,"hours":20,"weeks":52}

Output

{"hour":25,"day":200,"week":500}
Open tool · Salary Convert

Featured articles

Holiday discounts: compare the final price, coupons and taxMonthly compound interest: contributions, rates and assumptions