Home›Personal technology›iPhone automation
WORKING PERSONAL AUTOMATION

NFC Clock-In & Clock-Out Tracker.

A simple guide to the NFC sticker, iPhone Shortcut and Apple Numbers timesheet I use to record work hours.

iPhone NFCApple ShortcutsApple NumbersOriginal .shortcut + .numbers files

What this project does

I built a personal time tracker to record when I start and finish a shift using an NFC sticker and my iPhone. Apple Shortcuts handles the clock events; Apple Numbers stores the completed shifts and shows weekly totals.

Tap NFC sticker→Run iPhone Shortcut→Clock in / clock out→Save to Numbers

Project status: This is my working personal automation. It is not a commercial timesheet app or an independently audited payroll system. I use a simple project name here rather than the version number of my private Shortcut.

How the Shortcut remembers your clock-in

The first tap does not immediately write a completed shift to Numbers. It saves the timestamp in Shortcuts Storage under OfficeClockIn. Later scans read that value to decide whether to ignore a repeated tap, calculate clock-out, or offer missed-clock-out recovery. Once a completed shift has been successfully added to Numbers, the Shortcut deletes OfficeClockIn.

Two separate storage locations: The Apple Numbers .numbers workbook lives in iCloud Drive. OfficeClockIn and OfficeClockExceptions are Shortcuts Storage values, not separate files you can find and delete in the Files app. Shortcuts Storage can sync via iCloud, but its values are managed inside Shortcuts. Never delete your Numbers workbook just to cancel a clock-in.

In the working V2 configuration, both stored names used Global OFF (shortcut-specific values). If you create a second copy of the Shortcut, it may not share the original copy's clock-in state. Keep only the intended NFC automation active while testing.

Compatibility: Apple lists the built-in Store Content, Get Stored Content and Delete Stored Content actions as part of Shortcuts Storage on iOS/iPadOS 27. A device without these actions may not run the exported workflow unchanged. See Apple's Shortcuts release notes ↗.

What happens when I scan the NFC tag?

First scan — Clock In

Save the current timestamp as OfficeClockIn. No completed shift is written to Numbers yet.

Repeated scan within 31 minutes

Display SCAN IGNORED — STILL CLOCKED IN. Preserve the original timestamp and write no Numbers row.

Scan after 31 minutes, within 18 hours

Treat the scan as clock-out. Calculate elapsed/net time; deduct the 30-minute break once; append a completed row to Numbers. Clear OfficeClockIn only after the row succeeds.

Scan after more than 18 hours

Display Possible Missed Clock-Out Detected. Ask which recovery path to use. Do not automatically turn an implausibly long shift into a completed row.

These behaviors were exercised in the owner's personal V2 testing, including a simulated 20-hour old timestamp. They are not independently audited from the uploaded Apple-signed Shortcut. At exactly 31 minutes/18 hours, the comparison operator used by the installed Shortcut determines the boundary.

Accidentally clocked in? Clear the saved timestamp safely

If you scanned the NFC sticker but did not start work, you can cancel the pending clock-in without deleting your timesheet or past history.

  1. Open the correct Shortcut.

    Open Apple Shortcuts, find the copy actually used by your NFC automation (in the owner's setup this was Office Bag Clock V2), then open its editor or shortcut details. Be careful if an earlier copy is still installed.

  2. Find its Shortcuts Storage view.

    Open the Shortcut's information/details inspector, then select Storage. Depending on your iOS version, the inspector may be behind an information (ⓘ) or details control.

  3. Locate OfficeClockIn.

    Look for the shortcut-specific stored value named exactly OfficeClockIn (Global OFF in the tested workflow). Confirm that the saved timestamp is the accidental clock-in you want to discard.

  4. Delete only that stored value.

    Open the entry and use Delete or the deletion option shown by Shortcuts. If it isn't present, there may be no active clock-in. Do not delete OfficeClockExceptions (which may contain recovery history), the entire Shortcut, or the Numbers workbook.

  5. Verify the reset before scanning again.

    Return to Storage and confirm OfficeClockIn is absent. The next NFC scan should start a new clock-in. Run a controlled test using your own copy of the timesheet.

Alternative for advanced users: A temporary manual reset Shortcut can use Delete Stored Content for the OfficeClockIn key, but shortcut-specific storage is not global. Don't assume a separate Shortcut can delete another Shortcut's Global-OFF value; use the existing Shortcut's Storage view instead.

If the accidental scan was already treated as clock-out: There may now be an incorrect Numbers row. Correct or remove that row separately in Numbers, and confirm the state is cleared; deleting OfficeClockIn does not undo rows that were already written.

Forgot to clock out? The 18-hour recovery menu

The 18-hour check is performed when the Shortcut next runs (for example, on the next NFC scan). It is not a scheduled alarm or automatic 18-hour push notification. If you never scan again, the Shortcut does not independently wake up at the 18-hour mark.

Possible Missed Clock-Out Detected — The stored clock-in is older than the 18-hour threshold. Decide whether to retain that old shift for correction or start a fresh shift.

  1. Keep Previous Clock-In.

    Leave the existing OfficeClockIn timestamp unchanged. Show Previous clock-in preserved — manual correction needed. Stop without writing a Numbers row. Use this when you want to check and correct the existing unfinished shift.

  2. Start New Clock-In.

    Save an exception containing the previous missed shift in OfficeClockExceptions, replace OfficeClockIn with the time of the current scan, and notify NEW CLOCK IN — Previous missed shift saved for correction. The abandoned shift is not automatically added to the Daily Log.

  3. Correct the exception separately.

    Review your actual working hours and manually correct the appropriate record in your own Numbers workbook, following your workplace's approved timekeeping method. The saved exception helps you remember the missed shift; it is not a completed timesheet entry.

The recovery choices were exercised using a simulated 20-hour clock-in in the owner's setup. We have not independently executed the exported signed Shortcut on another iPhone or verified whether every notification behaves the same on a locked device.

What you need

  • An iPhone with Apple's built-in Shortcuts app and NFC automation support; the demonstrated Shortcuts Storage actions are documented for iOS/iPadOS 27.
  • A compatible NFC sticker or tag (one tag can toggle between clock in and clock out).
  • Apple Numbers to store shift records, with the workbook saved in iCloud Drive.
  • A personal Shortcut that calculates time and appends completed shifts to the Numbers table.

Download my original Shortcut and Apple Numbers workbook

These are the actual files from my personal NFC time-tracking setup, not a newly created imitation. Download both files, install the Shortcut, then reconnect it to your own copy of the Numbers workbook using the detailed steps below.

Office Bag Clock V2 — Original Shortcut

Apple Shortcuts export (.shortcut) · Original uploaded file, unmodified

Download my iPhone Shortcut ↓
Office NFC Time Tracker — Original Numbers Workbook

Apple Numbers (.numbers) · Original workbook, unmodified

Download original Numbers file ↓

Compatibility: The Shortcut is the original exported file I use, but I have not independently installed it on a second iPhone or verified whether it was exported for Anyone versus People Who Know Me. If your iPhone rejects the file, I may need to publish a new export with Options → File → Anyone. The Shortcut may also require a supported iOS version, permissions, and the Numbers file to be selected again.

Workbook note: This is the original workbook supplied for this project. Save a separate copy in your own iCloud Drive and use that copy for testing and personal time tracking. The workbook does not include the next user's shift history; any example values or selected-week summaries are not a substitute for testing your own clock-in/clock-out workflow. No company or payroll affiliation is implied.

Weekly summary layout of the original Numbers time tracker
Weekly summary view of the original workbook.

How to install my Shortcut on your iPhone

  1. Download both files.

    Use the two download buttons above in Safari. Save Office Bag Clock V2.shortcut and Office NFC Time Tracker.numbers to the Files app on your iPhone.

  2. Import the Shortcut.

    In Files → Downloads, tap Office Bag Clock V2.shortcut. If iOS opens the Shortcuts import preview, inspect the actions, then choose Add Shortcut. If it cannot be imported, check the compatibility note above—do not install modified or unofficial replacements.

  3. Put the workbook in iCloud Drive.

    Move or copy Office NFC Time Tracker.numbers into your own iCloud Drive folder, and open it once in Apple Numbers. Keep the Daily Log sheet and existing table/column order.

  4. Connect the Numbers destination.

    Open Shortcuts → Office Bag Clock V2 → •••, locate the Numbers row-writing action, and select your own workbook, Daily Log sheet and correct table. The next section explains these selections in detail.

  5. Allow access and test manually.

    Grant only the Files, Numbers and Shortcuts permissions you recognize. First test the Shortcut manually with a copy of your workbook, then confirm the time log is updated. Repeated scans within 31 minutes are designed to be ignored, so test with awareness of that safeguard.

  6. Connect an NFC sticker.

    Go to Shortcuts → Automation → + → NFC, scan and name your tag, select Run Shortcut → Office Bag Clock V2, and save. The tag automation is configured separately on every iPhone.

Before real use: This personal automation is not certified payroll software. Review the 18-hour missed-clock-out handling and rounding settings, and test on your own device first. Apple's official Shortcut sharing documentation explains importing exported files and the Anyone share option.

Detailed guide: Connect the Numbers file to Apple Shortcuts

These steps show how to select Office NFC Time Tracker.numbers on an iPhone. These steps are intended for the original Shortcut linked above. Labels may differ slightly across iOS versions. The Numbers workbook alone cannot automate clock-in/out; you must import the Shortcut as well.

  1. 1. Download the original workbook.

    Tap Download original Numbers file above. On the iPhone, open the Files app → Browse → Downloads and find Office NFC Time Tracker.numbers.

  2. 2. Save it to your own iCloud Drive.

    In Files, touch and hold the file → Move (or Copy) → iCloud Drive. You can create a folder such as iCloud Drive/Shortcuts/Time Tracker. Keep the filename unchanged for now. If you see a cloud download symbol, tap it to download the file fully. Do not leave it only in On My iPhone or a browser Downloads location if the Shortcut expects an iCloud file.

  3. 3. Open the copy in Apple Numbers.

    Tap the file in Files or open it from the Numbers app. Locate the Daily Log sheet, then look at the name of the table containing your clock-in and clock-out records. Sheet name and table name are different fields. Our tested Numbers action targeted Daily Log → OfficeShiftLog → bottom; select the table name shown by your own copy, because duplicated/imported workbooks may differ. Leave their names and column order unchanged.

  4. 4. Open the Shortcut editor.

    Open Shortcuts → Shortcuts, find your installed clock-in/clock-out Shortcut, and tap its ••• menu to edit it. If you have not already installed it, download and import the original Shortcut using the steps above.

  5. 5. Find the action that saves data to Numbers.

    Scroll through the Shortcut's actions and look for a Numbers action named Add Row to Top or Bottom of Table (or similarly named Add Row). Its fields generally include the spreadsheet/document, sheet, table, and values to be added. Do not change the time-calculation or clock-state actions while reconnecting the file.

  6. 6. Select your downloaded Numbers file.

    Tap the blue or highlighted Spreadsheet/Document field in that action. Choose Select File, Choose, or Browse if shown. Navigate to iCloud Drive → Shortcuts → Time Tracker (or wherever you saved the file), and select Office NFC Time Tracker.numbers. If the action uses a separate Get File or Open Spreadsheet step, point that step to the same copied file as well.

  7. 7. Select the matching sheet and table.

    Tap the action's Sheet field and choose the sheet holding the daily records (shown as Daily Log in the workbook guide). Next, tap Table and choose the actual table inside that sheet. Do not choose Weekly Summary as the destination for new completed shifts. If the picker asks for a name instead of displaying a list, type the exact table name shown in Numbers.

  8. 8. Verify the values going into each column.

    Check these eight destination columns in order: Date (ISO), Clock in, Clock out, Break (min), Gross (min), Net (min), Net hours, Notes. The original test used a row containing date, clock-in, clock-out, 30, gross minutes, net minutes, rounded net hours, and NFC. Do not confuse the NetMin calculation with the final hours value. Do not rearrange the existing table to match a guess. If a column is incorrect, adjust the corresponding Shortcut value or restore the original column order.

  9. 9. Save, allow permissions, and test carefully.

    Tap Done. Run your Shortcut manually: the first run should save the clock-in state, and a later clock-out run should write one completed shift to Daily Log. Allow any Numbers, Files, or iCloud permission request. Test with a copy of the workbook so you do not mix test shifts with actual records.

  10. 10. Confirm the weekly report.

    Open the workbook in Numbers and verify the completed shift appears in Daily Log and its net hours flow into Weekly Summary for the selected week. The 30-minute break should be subtracted once by the Shortcut, not again in the summary. If no row appears, revisit steps 6–8.

Important: This guide describes how to reconnect an existing Shortcut. I have not independently decoded the Apple-signed actions in the uploaded V2 Shortcut or run a clean-install test on a second iPhone. Depending on how that Shortcut stores its clock-in state, there may be additional file references to reconnect. Selecting the original Numbers workbook therefore cannot guarantee an error-free installation.

Workbook setup: Download the included original Numbers workbook, save it to your own iCloud Drive, and confirm the Daily Log → OfficeShiftLog destination before running the Shortcut. If your copy shows example records, clear only the example rows after reviewing the table formulas. Keep the column order and table names intact.

Helpful reference: Apple's Files app guide ↗.

Set up your NFC tag and test

  1. Register the tag:

    On iPhone open Shortcuts → Automation → + → NFC → Scan, hold your iPhone near your NFC tag, then name the tag.

  2. Connect the Shortcut:

    Choose the Run Shortcut action, select your clock-in/clock-out Shortcut, and use Run Immediately if available. Review the automation and tap Done.

  3. Test in order:

    Scan once to clock in; scan again later to clock out. Check that only the completed clock-out writes a row to the Daily Log table. Do not run repeated trial scans against your real attendance data.

  4. If it fails:

    Run the Shortcut manually first. Then inspect any saved-state actions, Numbers file selection, Sheet and Table fields, column values and app permissions. Your device may require its own iCloud file and permissions.

Try the interactive Work Hours Calculator

Want to check a shift without installing an iPhone Shortcut? Use my free Work Hours Calculator to enter start/end dates, subtract your break and choose exact time or quarter-hour rounding. It runs in your browser and does not send your entries to me.

The calculator is a separate demonstration with selectable rounding rules. Its result may not match the precise rounding action in the exported Shortcut; always follow your organization's actual timekeeping policy.

How the hours are calculated

Example shift (fictional)8:00 AM → 6:47 PM
Time elapsed10 h 47 min
30-minute break10 h 17 min
Round DOWN to previous 0.25 hour10.25 h

This example shows the earlier quarter-hour rounding rule discussed during development. Later V2 testing also described rounding down to two decimal places; the exported signed Shortcut has not been independently decoded to resolve that difference. Check the actual rounding action in your installed version before applying either rule. Some organizations prohibit certain timekeeping rounding practices; follow your applicable policy.

Can I use the original Shortcut on my iPhone?

Yes—download my original .shortcut file and the matching .numbers workbook above. Import the Shortcut, connect your own copy of the workbook, configure an NFC automation, and run a test.

Note: These are my original working files. I have not clean-installed the export on another person's device, and Apple may restrict imports if it was exported for People Who Know Me. Imported actions, permissions, and stored clock-in values are device-specific.

Common problems

NFC tag doesn't trigger

Confirm your iPhone supports Shortcuts NFC automations, that the automation is enabled, and that you've scanned the same tag you registered.

First tap works, second tap doesn't

Check whether the Shortcut saved the clock-in state. Try running it manually before troubleshooting the NFC trigger.

Numbers doesn't receive the row

Re-select the actual workbook, sheet and table in the Numbers action. Check that the file is accessible, the columns match and any permission prompts were approved.

A clock-in from yesterday is still active

If more than 18 hours passed, the next scan should show the recovery menu. Choose whether to preserve the old record or start fresh; don't invent a clock-out time.

I want to cancel an accidental scan

Open the intended Shortcut's inspector → Storage → delete only OfficeClockIn. Your Numbers workbook is separate and should not be deleted.

The Storage option is missing

Check the device's iOS version and the correct Shortcut. Apple documents these built-in Storage actions with iOS/iPadOS 27, so older versions may not offer them.

Hours look wrong

Verify the 30-minute break is deducted only once, check overnight clock-outs, and confirm the weekly summary isn't applying an extra deduction.

What is verified, and what still needs testing?

  • Observed during original personal tests: duplicate-scan protection under 31 minutes; standard clock-out path; 30-minute break; Shortcuts Storage keys; conditional 18-hour recovery choices; Numbers row insertion and subsequent clock-in reset.
  • Needs independent confirmation: the exact installed rounding operation (quarter-hour vs hundredth-hour), reliable recovery after Numbers write errors, clean-install import on a second Apple Account, handling of daylight-saving changes and other edge cases, and operation when the phone is locked.
  • Not included as completed features: automatic 18-hour push alerts without a scan, automatic correction of missed shifts, or a cross-device-tested Shortcut. The original export is provided, but is not independently verified for other devices.
  • Check before sharing: disable duplicate NFC automations, use your own Numbers workbook file/table reference, confirm compatibility with Shortcuts Storage, and never share private attendance history.
← Back to personal technology projects

Explore another completed personal technology project: Mac mini + iPad Jump Desktop guide ↗. My other practical technology project explains a portable Mac mini workstation controlled from an iPad using Jump Desktop.