Websites, apps & code / Automation

Formulas for overtime and pay

You have clock-in times and want the sheet to work out normal hours, overtime and monthly pay.

1Fill in your details

Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).

2Pick a variationYour trade

3Copy the prompt

I track staff clock-ins in Google Sheets and want formulas to work out pay automatically.
Hours rule: 8 normal hours a day, extra paid at 1.5x; RM9.50 per hour; 1-hour lunch unpaid
Sheet columns: A date, B clock in, C clock out, D employee name

Please:
- Restate the rule in one or two sentences so I can confirm it
- Give the formula for each column (normal hours, overtime hours, daily pay) and say which cell it goes in
- Add a formula that totals by employee and month
- Handle shifts that cross midnight (closing at 1am) without negative results.
- Warn me where the formulas break (blank cells, a missing clock-out) and show how to guard against it
- Use only my rule. Do not invent figures; leave unknowns as [ ] and ask me.

Output format: a table of column, formula and explanation, then 3 rows of sample data so I can check the result. Reply in English. Note that this is internal tallying only; actual payroll, EPF and SOCSO follow official rules or your accountant.

[Make it sound human]
- Explain in plain words; no pleasantry openers or empty summaries.
- Only necessary, short, practical code comments; the simplest working approach, no over-engineering.
- Interface text (buttons, hints, error messages) should sound like a person wrote it; no "seamless", "empower", "unlock".
[Quality] Code must run as is and handle common errors; tell me how to test it and confirm it works; ask first if a requirement is unclear; never put passwords or API keys in the code.

Paste it into ChatGPT, Gemini, Claude or Meta AI.

Test result

This one was not tested on its own. Uses in this category share the same structure, and we spot-tested several of them, for example: Auto confirmation email after a form, Auto-tidy sheet data

AI tools that suit this

  • ChatGPT Suggested tool Free plan

    The most widely used AI chat, for writing, questions and images

  • Claude Suggested tool Free plan

    Strong at long documents, editing and code

  • Gemini Suggested tool Free plan

    Google's AI; generates and edits images, works with Gmail and Docs

Recommendations only, not sponsored. Check each site for what the free plan includes.

This site is made by FullMark Tech

Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.

Ask on WhatsApp See FullMark Tech services