Tolz.me

Category

Calculator Tools

Work out the hours between two clock times, and calculate aspect ratios from pixel dimensions.

Two calculations look trivial until you have to do them for real. Hours worked turns into a spreadsheet when you are tracking a week with a lunch break, a split shift or one night that runs past midnight. Aspect ratios turn into a puzzle when you are fitting an image into a frame and need to know whether to resize it or crop it.

Both tools here do the fiddly parts in the browser. The hours calculator adds up shifts day by day, removes unpaid breaks, handles shifts that cross midnight, and gives you the total in hours and minutes, in decimal hours for a timesheet, and as a rough pay figure if you enter an hourly rate. The aspect ratio calculator works in both directions: give it a ratio and one side to get the other, or give it two pixel sizes to get the simplest ratio back.

Neither one stores what you type, and both give you a plain text summary you can copy into a timesheet or a message. The pay figure is an estimate of gross pay before tax, so treat it as a rough number rather than a payslip.

How to use each tool

Two calculations that get awkward fast once you do them for real. Here is what each tool measures, how to enter your numbers, and where people trip up.

Hours Between Two Times Calculator

Pick your time format. The 24-hour option shows 09:00 and 17:00, the 12-hour option shows 9:00 AM and 5:00 PM. Either style is accepted in the boxes, so 9:00 AM, 9am, 09:00, and 9 all work.

Type your start and end times into the first row. The shift length appears next to the row as soon as both boxes hold a time the tool can read.

If you took an unpaid break, put the number of minutes in the break box, so 30 takes half an hour off the shift. Leave it empty for a break you get paid for.

Use the Add day button for each day of the week, and type a label in the first box if you want the summary to say Mon or Night shift. Add an hourly rate for a rough pay estimate, then copy the summary.

Tip: If the end time is earlier than the start time, the calculator reads it as a shift that crosses midnight, so 22:00 to 06:00 comes out as eight hours. A row showing 0:00 usually means the two times were typed the same way round.

Aspect Ratio Calculator

Type a ratio or pick one of the presets: 16:9, 9:16, 4:3, 1:1, 21:9, 3:2, and 4:5. You can also type 16x9 or a decimal such as 1.7778.

Set the width or the height. The other side recalculates so the shape stays locked to the ratio, and whichever side you set last is the one that holds when you change the ratio later.

Read the results. The simplified ratio is the smallest whole number pair that matches your size, such as 1920 by 1080 becoming 16:9, and the decimal ratio is the width divided by the height.

Drop an image onto the upload area to read the dimensions of a file you already have, or pick a row from the common sizes table. Copy the summary when you need the numbers somewhere else.

Tip: Aim for sizes that sit neatly on the ratio. A width of 1000 pixels at 16:9 needs a height of 562.5, which cannot exist as a pixel, so the tool rounds it to 563 and the ratio drifts a little.

Common jobs and the tool for each one

  • Total the hours you worked

    Adds up a shift or a whole week, subtracts unpaid breaks, handles overnight shifts and reports decimal hours for a timesheet.

  • Fit an image to a frame

    Works out the missing side of a ratio such as 16:9, reduces a pixel size to its simplest ratio, and reads image dimensions from a file.

How to choose the right tool

They do different arithmetic, so the number you already have tells you which one you need.

You need the length of a shift or a week

The hours calculator. It handles the overnight case, subtracts unpaid breaks, totals several days at once, and gives you the answer in hours and minutes, in decimal hours for a timesheet, and as a rough pay figure.

You need the shape of a picture

The aspect ratio calculator. Give it a ratio and one side to get the other, or give it two pixel sizes to get the simplest ratio back.

You are resizing an image and want to know what to do

Work out the target ratio first, then decide between cropping and letterboxing. Scaling to the same ratio changes nothing about the picture, a different ratio forces a crop or adds bars, and the tool gives you the numbers for each option.

You are checking work that came out of another tool

If a crop has to fit a specific panel, the aspect ratio calculator tells you the shape you are aiming for. The Steam artwork cropper on the gaming page does the cropping itself.

Frequently asked questions

How do I count a shift that crosses midnight?+

Enter the end time earlier than the start time. The calculator reads that as a shift that runs into the next day, so a 22:00 to 06:00 shift comes out as eight hours rather than minus sixteen. If you prefer a setting that treats an identical start and end time as a full day, there is a checkbox for it.

Does it subtract unpaid breaks?+

Yes. Add the break length in minutes to the shift row and the worked total comes out lower than the raw span. The summary also shows how many break minutes were removed across the whole set of days.

Why does it give me 7.75 hours instead of 7:45?+

Decimal hours are what a timesheet usually wants, and they come from minutes divided by 60. Seven hours and forty five minutes is 465 minutes, which is 7.75 hours. Both forms are shown side by side so you can copy whichever your employer expects.

Which aspect ratio should I use?+

That depends where the image goes. Video is usually 16:9, a square post is 1:1, and a phone photo is 4:3 or 3:4. The tool includes the common sizes so you can start from one and see the matching pixel dimensions.

Can I work out the hours between two times without a break?+

Yes. Leave the break field empty and the calculator gives you the straight difference between the two times. It still handles the awkward cases the same way, so an end time earlier than the start time is treated as crossing midnight.

How do I get the ratio of an image I already have?+

Drop the file onto the aspect ratio calculator and it reads the pixel dimensions from the file without uploading it. From there you can reduce the size to its simplest ratio, such as 1920 by 1080 becoming 16:9, or work backwards from a ratio to the size you need.