
Category
Everyday Life Calculations
Cooking, travel, home and time calculations that come up outside any classroom, with the everyday assumptions spelled out rather than hidden.
57 calculations published in this category.
Driving
How To Calculate A Car Fuel Range
A car's fuel range tells you how far you can drive on the fuel it is carrying, and it follows from just two numbers: the size of the tank and the miles travelled per gallon. This page also turns the same inputs into the cost of a full tank, the cost of each mile and the gallons burned every hundred miles. Together those figures answer most of the fuel questions that come up before a journey.
R = C x E
How To Calculate A Cost Per Mile
Cost per mile is the number that tells you what driving actually costs, and it is almost always higher than the fuel receipt alone suggests.
cost per mile = total cost / miles driven
How To Calculate Commute Cost
A commute is a repeating expense, which makes it one of the few household costs that can be forecast accurately. Distance, frequency and three unit costs are enough to turn it into an annual figure.
Annual cost = fuel + parking + tolls
Shopping
How To Calculate A Discount
A discount is a percentage taken off the price before tax, so the sale price and the money saved are two separate numbers that the tag never prints. On an original price of 120 with 25 per cent off, the saving is 30.0, the sale price is 90.0, and with 8 per cent tax the bill is 97.2.
sale price = original x (1 - rate); saving = original x rate
How To Calculate A Grocery Budget
A grocery budget is easiest to build from a rate rather than a total. Work out what one person's food costs for one week, multiply by household size, and every other figure follows by arithmetic.
Weekly budget = household size x spend per person per week
How To Calculate Shipping Cost
Shipping cost is rarely just weight times rate, and understanding the base fee and the zone multiplier is what stops a parcel quote coming as a surprise.
cost = (base fee + weight x rate per kg) x zone multiplier
How To Calculate Stacked Discounts
Stacked discounts multiply rather than add. A price of 200 cut by 20% and then by 10% falls to 160.0 and then to 144.0, an effective discount of 0.28, not the 0.30 that adding the two rates would suggest.
Final Price = Price x (1 - first) x (1 - second)
How To Calculate Unit Price
Unit price is the price divided by the quantity, expressed per gram, per litre or per 100 g, and it is the only figure that compares two packs of different sizes fairly. The arithmetic is one division; the discipline is applying it before you trust a label.
Unit price = price / quantity
Home
How To Calculate A Moving Cost
A DIY moving cost adds up three things: the truck rental, any paid labour and a charge for the miles driven. Splitting the total into those components shows where the money actually goes, while dividing by the hours worked puts the effort in context.
Total = truckRental + (hours x hourlyRate) + (miles x mileageRate) | cost per hour = Total / hours
How To Calculate A Pool Volume
Pool volume is the number every other pool calculation depends on, because chemicals, heating and pump run times are all dosed per litre rather than per pool.
volume = length x width x average depth
How To Calculate Air Conditioner Size
Air conditioners are rated in BTU per hour, which is a heat removal rate rather than a weight or a size. Getting the number right stops you buying a unit that cannot keep up, or one that is so oversized it never runs long enough to dehumidify.
BTU = area x 20 x (ceiling height / 8) x climate factor x kitchen factor
How To Calculate Concrete Volume
Concrete is ordered by volume and bought by the bag, so every slab, footing and path begins with the same three-number multiplication: length times width times thickness.
V = L x W x T
How To Calculate Electricity Cost
Electricity cost is power multiplied by time, converted into the unit the bill actually uses, then priced. Almost every wrong answer comes from confusing the two quantities — watts and kilowatt-hours — before any arithmetic begins.
Cost = watts x hours / 1000 x rate per kWh
How To Calculate Grass Seed Needed
Grass seed is sold by weight but spread by area, so the number of bags you need depends on two things: how big the lawn is and whether you are starting from scratch or thickening an existing sward.
pounds = (area / 1000) x seeding rate, bags = ceil(pounds / bag size)
How To Calculate Household Water Usage
Household water use is dominated by a small number of fixtures. Measure showers, toilets and laundry and you have captured most of what goes through the meter indoors, without needing to read the bill and guess.
Daily gallons = shower use + toilet use + laundry use
How To Calculate Lumber For Framing
Framing a wall comes down to counting studs at a fixed spacing, adding the plates that tie them together, and buying a little extra for the cuts that go wrong.
n = ceil(L / s) + 1
How To Calculate Moving Boxes Needed
Ordering too few boxes means a second trip to the shop mid-move, and ordering too many leaves you storing empty cardboard. The count scales with the number of bedrooms, which is the standard shorthand for household size.
boxes = bedrooms x 20, split 10 small, 6 medium, 3 large and 1 wardrobe
How To Calculate Paint Coverage
Paint coverage is quoted per litre per coat, so the coat count multiplies the area before you divide. The arithmetic is one multiplication and one division; the judgement lies in reading the coverage figure honestly and turning litres into tins you can actually buy.
Litres needed = (wall area x coats) / coverage per litre
How To Calculate Solar Panels Needed
Sizing a solar array is a division problem. Work out how much energy one panel produces where you live, then divide your daily consumption by that number.
panels = ceil(daily kWh / (panel kW x peak sun hours x (1 - losses)))
How To Calculate Tile Count
Tile count is the surface area divided by the area of one tile, with a wastage allowance added and the answer rounded up. The only real decisions are how much wastage to allow and which direction to round.
Tiles = (room area / tile area) x (1 + wastage)
How To Calculate TV Viewing Distance
Viewing distance is a trade-off between immersion and comfort. Sit too far away and the picture loses detail; sit too close and your eyes have to sweep to follow the action. The distance scales with the screen height, not the diagonal.
distance = screen height x viewing multiple, screen height = 9 x diagonal / sqrt(337)
Food Value
Travel
How To Calculate A Road Trip Cost
A road trip cost collects into three buckets: fuel, tolls and a place to sleep. The calculation turns a distance and a fuel efficiency figure into the gallons you will burn, prices those gallons, and then layers on road charges and the nights you spend away from home. Dividing the total by the distance gives a cost per mile, which is the handiest number for comparing one route or one vehicle with another.
Total = (distance / efficiency) x price + tolls + nights x nightly rate
How To Calculate Fuel Cost
Fuel cost is two multiplications and one division: distance into litres, litres into money, and money into a rate you can reuse. The only real traps are the units and a consumption figure that runs backwards.
Fuel cost = (distance x consumption / 100) x price per litre
How To Calculate Gas Mileage
Gas mileage is a rate, and it arrives in two scales that run in opposite directions: litres per 100 kilometres, where lower is better, and miles per gallon, where higher is better. Converting between them is a reciprocal, not a single multiplication.
mpg = 100 / (L/100km) x 3.785411784 / 1.609344
Renting
Tipping
How To Calculate A Split Bill
A split bill divides one restaurant bill between several people, and nearly every disagreement about it comes from the order of operations rather than from the arithmetic. The tip is a percentage of the pre-tip bill, it has to be added before anything is divided, and the split only stops being trivial once the shares stop being equal.
tip = bill x rate; total = bill + tip; per person = total / people
How To Calculate A Tip
A tip is just a percentage of a bill, yet most of the arguments around it come from two decisions rather than from arithmetic: what you take the percentage of, and at what point you split it.
Tip = bill x rate; total = bill x (1 + rate)
Household
Time & Dates
How To Calculate Age From Date Of Birth
Age is the distance between a date of birth and a reference date, and it can be expressed in several ways: whole years, total months, weeks, days, or hours. The calculation is a subtraction once both dates have been converted to a day count.
Days alive = day number of reference date - day number of birth date
How To Calculate Days Between Dates
Counting the days between two dates, or adding a number of days to a date, is a calendar arithmetic problem. Both operations reduce to converting each date to a day number, doing simple addition, and converting the result back to a calendar date.
Days between = day number of later date - day number of earlier date
How To Convert Time Zones
A time zone conversion is two arithmetic steps around a shared reference. The day shift that comes out of it is the part people get wrong, not the arithmetic.
target local time = local time - source offset + target offset
Home Improvement
How To Calculate Bricks Needed
Counting bricks is an area problem. Work out how much wall there is, subtract the holes, and divide by the area one brick occupies once the mortar joint is included.
bricks = (wall area - openings) x 144 / ((brick length + joint) x (brick height + joint)) x (1 + waste)
How To Calculate Deck Boards Needed
A deck is covered one row at a time. Work out how many rows fit across the width, multiply by the length, and you have the linear feet to buy.
rows = ceil(12 x deck width / (board width + gap)), boards = ceil(rows x deck length x (1 + waste) / board length)
How To Calculate Drywall Needed
Drywall is sold in whole sheets, so the job is to add up every surface, take off the openings, divide by the sheet area and round up with a waste allowance.
sheets = ceil((wall area + ceiling area - openings) / sheet area x (1 + waste))
How To Calculate Fence Posts
Fence materials come from one division and a few additions. The post count is the length divided by the spacing plus one, and everything else follows from the number of sections.
posts = fence length / post spacing + 1, rounded up
How To Calculate Flooring Needed
Ordering flooring is an arithmetic problem with a rounding trap at the end, because you cannot buy a fraction of a box.
boxes = (room area x (1 + waste allowance)) / pack coverage
How To Calculate Shingles Needed
Shingle quantity starts from the roof area, not the floor area. Steeper roofs cover more surface, so the pitch multiplier has to be applied before anything is ordered.
squares = roof length x roof width x pitch multiplier x (1 + waste) / 100
How To Calculate Wallpaper Needed
Wallpaper is bought by the roll, but the room is measured in square feet. Convert the walls into an area, subtract the openings, then divide by what one roll actually covers.
rolls = (2 x (length + width) x ceiling height - openings) / coverage per roll
Fitness
Work
How To Calculate Double Time Pay
A single overtime multiplier prices a simple week. A week with daily double time, weekly overtime and a holiday needs each band priced separately before the total means anything.
weekly pay = straight hours x rate + OT hours x rate x 1.5 + double time hours x rate x 2
How To Calculate Overtime Pay
Overtime pay is not a single multiplication. It is a split: hours up to a threshold are paid at the base rate, hours beyond it are paid at the base rate times a multiplier, and the two bands are added.
Total pay = min(H, T) x R + max(0, H - T) x R x M
How To Choose Hashtags
A hashtag is a label that joins a post to a feed. The labels everyone uses are the ones nobody sees, which is the whole problem in one sentence.
a set of n tags split roughly 25% broad, 45% mid and 30% niche, longest and most specific first
How To Generate Random Numbers
A random number generator turns a range into a draw. The interesting part is not the numbers themselves but the statistics of the set you get back.
value = floor(min + u x (max - min)), where u is a uniform draw in [0, 1)
How To Resize Product Images
Resizing is one multiplication applied to every coordinate in the frame. The only decisions are which ratio to scale by and what to do about the shape that is left over.
scale = min(box width / source width, box height / source height) to fit inside, max(...) to fill and crop
How To Write ChatGPT Prompts
A prompt is a specification rather than a question. The model cannot ask what you meant, so anything left out of it is something it will decide for you.
prompt = role + task + context + tone + format + constraints + a final-answer instruction
How To Write Email Subject Lines
A subject line has one job and about forty characters to do it in. Everything else in the email is invisible until that job is done.
subject = one concrete noun + one reason to open, kept under 41 characters
Technology
Home & Garden
Salary
Text & Writing
How To Convert Text Case
Changing the case of a piece of text is not a single operation. There are at least eight named styles, each with its own rules, and picking the wrong one is as much a mistake as getting the letters wrong.
Title Case = capitalise each significant word, lower-case the small ones
How To Count Characters
Character limits are the hard constraints of writing online. Unlike a word count, which is a guide, a character limit truncates, rejects or splits your text the moment you cross it.
characters = length of the string, including spaces
How To Count Words
A word count looks trivial until two tools disagree about the same paragraph. The number depends on what counts as a word, and every editor makes that decision slightly differently.
reading time (minutes) = words / 200
How To Encode Text To Base64
Base64 takes any sequence of bytes and rewrites it using only letters, digits and two punctuation marks. The point is not secrecy but safety: the output survives channels that would otherwise mangle raw binary.
3 bytes -> 4 Base64 characters (with = padding to a multiple of 4)
How To Reverse Text
Reversing text is the simplest string operation there is, and also one of the easiest to get subtly wrong once the text leaves plain English and starts containing emoji or accented letters.
reverse(s) = the characters of s in the opposite order
How To Rewrite A Sentence
A rewrite is not a translation of meaning but of register. The facts stay where they are; what changes is how much space they take and who they sound like they are for.
rewrite = apply the strategy's substitution table in order, then delete its filler list