Time Card Calculator (clock-in / clock-out / break)
Enter clock-in and clock-out times (HH:MM, 24-hour) plus the unpaid break in minutes to get total hours worked — both as a decimal value and an h : m breakdown — and, if you supply an hourly rate, the gross pay for the day. A clock-out time earlier than clock-in is auto-detected as an overnight (graveyard) shift and rolled to the next day. Useful for freelancers, part-timers, nurses, security, F&B and call-centre workers who need to tally a single shift or cross-check the company time clock.
Enter valid clock-in/out times (HH:MM); break minutes and hourly rate must be ≥ 0.
Hours worked
Overnight7.00
decimal hours
7 h 0 m (8 h shift)
Day pay
—
Day pay
—
Decimal hours = worked minutes ÷ 60. A clock-out earlier than clock-in is auto-treated as an overnight (graveyard) shift.
Formula
Worked minutes = ((clock-out − clock-in + 1440) mod 1440) − unpaid break Decimal hours = worked minutes ÷ 60 Day pay = decimal hours × hourly rate Overnight detection: clock-out < clock-in → add 24 h (1440 min)
- · Times use a 24-hour HH:MM clock; the unpaid break is in minutes, with 0 meaning no break is deducted.
- · Hours are reported in decimal form (e.g. 7.50 h = 7 h 30 m) which is the form payroll software multiplies by the hourly rate. The displayed pay is worked minutes ÷ 60 × rate.
- · Overnight (graveyard) shifts: when clock-out is numerically smaller than clock-in, the calculator rolls the end time to the next day, so 22:00 → 06:00 with a 30-min break = 7.5 h.
- · The hourly rate is unit-less by design — pick whatever currency you want (HK$, US$, £, ¥, S$). The output is the same number, no currency prefix.
- · Only a single shift is computed. Overtime multipliers (e.g. 1.5×, 2×), rest-day premiums and public-holiday allowances must be applied separately per local labour law and your employment contract — see the US FLSA, the UK Working Time Regulations or Hong Kong’s Employment Ordinance (Cap. 57).
- · A break longer than the elapsed shift is rejected (would yield negative pay) — the calculator surfaces an inline error.
- · Sources: US Department of Labor Fact Sheet #53 — Hours Worked under the FLSA; Hong Kong Labour Department, Concise Guide to the Employment Ordinance, Chapter 9 (working hours, rest days, holidays).
Frequently asked
I work the night shift — e.g. 11 pm to 7 am the next morning. Does this calculator handle that?
Yes, automatically. When the clock-out time (07:00) is numerically smaller than clock-in (23:00), the tool rolls clock-out to the next day, treating the gap as an overnight shift. So 23:00 → 07:00 with a 30-min break gives 7.5 h. An "Overnight" badge appears on screen so you can sanity-check.
Should I use decimal hours or hours-and-minutes when calculating pay?
For pay, always use decimal hours. The classic mistake is to think 7 h 30 m = 7.30 h. It is actually 7.5 h (30 ÷ 60 = 0.5). That 0.2-hour gap, over 22 workdays at US$20/h, is US$88/month. The tool shows both forms but the pay multiplier uses decimal hours.
Does the calculator handle overtime (OT)?
No — only base hours for a single shift. OT thresholds and multipliers vary widely: the US FLSA requires 1.5× after 40 weekly hours; Hong Kong has no statutory OT premium (it depends on your contract); UK Working Time Regulations cap average hours rather than mandate OT pay. Use this tool for the base daily hours, then apply your contract / local-law multiplier separately.
Related tools
Age Calculator
From your date of birth, get exact age, Chinese nominal age (虛歲), days lived and days to next birthday.
Date Difference Calculator
Enter any two dates to get the calendar gap, working days, weekend days, plus year/month/day breakdown and total weeks/months.
Time Zone Converter
Pick your local and target cities to convert a given clock time across time zones.
Date Add / Subtract Calculator
Add or subtract years, months, weeks and days from a start date to get the resulting date and weekday.
Business Days Calculator
Count the working days between two dates (excluding weekends) — or add N business days to a start date to find the deadline.
Pregnancy Due Date Calculator
Estimate the due date from your last menstrual period (LMP) using Naegele's rule, plus current gestational week, trimester and key pregnancy milestones.
Day of Year & Week Number Calculator
Pick any date to see which day of the year (1–366), ISO 8601 week number, weekday, and how many days from the start and end of the year.
Day of the Week Calculator (Any Date)
Enter any Gregorian date (past or future) to instantly find the day of the week — useful for birthdays, anniversaries and historical events.
Unix Timestamp ↔ Date Converter
Convert a Unix timestamp (seconds or milliseconds since 1970-01-01 UTC) to UTC, Hong Kong time and RFC 1123 HTTP date — and back. Built for debugging log files, API responses and database fields.
Easter Date Calculator
Pick a year and the Computus algorithm returns Easter Sunday plus Ash Wednesday, Palm Sunday and Good Friday.
Moon Phase Calculator
Enter any date to compute the lunar phase (new, first quarter, full, last quarter …), moon age in days and illuminated fraction.
Chinese Zodiac & Lunar Age Calculator
Find your Chinese zodiac animal, stem-branch element, zodiac year and lunar (nominal) age from any birth date.
Western Zodiac Sign Calculator
Enter your birth date to see your Western zodiac sign (Aries, Taurus, Gemini…) along with its element, modality and opposing sign.
Birthstone Calculator
Pick a birth month to instantly see the modern and traditional birthstones, the birth flower, the spanning zodiac signs and a colour swatch — handy when choosing jewellery or birthday gifts.
Julian Day Number Calculator
Convert a Gregorian calendar date to its Julian Day Number (JDN) and Modified Julian Day (MJD) — used in astronomy, history, and cross-calendar date math.
ISO 8601 Week Number Calculator
Enter any date and compute its ISO 8601 week number, ISO year and weekday — using the Monday-first / first-week-contains-Jan-4 rule.
Time Between Two Times Calculator
Enter two clock times (HH:MM[:SS]) and instantly see the difference in hours, minutes and seconds — with overnight-shift handling and decimal-hour output.
Hong Kong Statutory Annual Leave Calculator
Enter years of service and see the statutory paid annual leave entitlement under the HK Employment Ordinance §41AA.
Half-Birthday Calculator
Enter your date of birth to see when your next half-birthday falls, how many days away it is, and your current half-age (e.g. 33.5 years).
Daylight Hours (Sunrise / Sunset) Calculator
Enter a latitude, longitude and date to get the local sunrise, sunset, solar noon and total daylight hours using the NOAA solar position formula.