How to track office days automatically on iPhone.

Short answer

There are two ways to track office days automatically on iPhone. You can build a free Shortcuts automation that adds an "Office" calendar event when you arrive at work, or you can use an RTO tracker app that detects your arrival and counts the day against your rule. Shortcuts costs nothing but only records the day; an app also tells you how many office days you still need.

Most people who fall short of a return-to-office rule simply forget to log a day. Automatic logging fixes that by letting your iPhone notice when you reach the office. Below is a free setup that uses only Apple’s Shortcuts and Calendar apps, a worked month of counting, and what a dedicated app adds on top.

Set up a free Shortcuts automation, step by step

  1. Decide what should count as an office day

    Before you build anything, write down the rule you are tracking and what a single office day means to you. Most hybrid rules count a day once, however long you stay, so you want one entry per day, created on your first arrival.

    • Weekly rule, such as 3 days a week: you will count entries per Monday-to-Friday week.
    • Monthly or percentage rule, such as 60% per month: you will count entries per month and compare them with working days.
    • If you sometimes pass the office at weekends or late at night, plan to limit the automation to working hours.
  2. Create an Arrive automation for your office

    Open the Shortcuts app, tap the Automation tab, and create a new automation with the Arrive trigger. Choose your office as the location, and set a time range that matches your normal arrival, for example 7 AM to 11 AM, so a detour past the building in the evening does not count. Apple lists Arrive among the triggers that can run automatically, so set the automation to run immediately rather than ask for confirmation; iOS still shows a notification when it runs.

  3. Make it add an all-day "Office" calendar event

    For the action, add Add New Event from the Calendar actions. Set the title to Office, turn on All-day, and save it to a separate calendar you create just for this, such as "Office days", so the entries are easy to find and count later.

    • Why Calendar rather than a spreadsheet: people building the same automation report that steps writing to a Numbers or Google Sheets file failed while the iPhone was locked, while a calendar-logging automation kept working.
    • If a step is skipped while the phone is locked, open the shortcut, tap Edit, then the Info button, then Privacy, and check whether "Allow Running When Locked" is offered and switched on.
    • The automation lives on this one device. Apple notes that automations sync to your other devices switched off.
  4. Count your office days for the period

    To count, open Calendar, show only the "Office days" calendar, and count the all-day events in the week or month. For a one-tap count, build a second shortcut: add Find Calendar Events, filter it to the "Office days" calendar and the dates of your period, then add Count and Show Result.

  5. Work out how many office days you still need

    This is where the free setup stops. Shortcuts records the days but does not know your rule, your public holidays, or how many working days are left, so you still have to do the arithmetic each week: required office days minus office days done, compared with the working days remaining. Our guide to calculating your office attendance percentage walks through that maths.

    OfficeComply logs the day when you arrive and shows days done, days left, and the next day to go in, with no counting shortcut to maintain. Get OfficeComply on the App Store

A worked example: one month of automatic logging

Say your rule is 60% of working days per month, the month has 21 working days, and one of them is a public holiday your policy excludes. That leaves 20 working days, and 60% of 20 is 12 office days.

On the 17th, your Find Calendar Events shortcut shows 8 Office events, and there are 9 working days left in the month. You need 12 − 8 = 4 more office days, so you can still work from home on up to 5 of the remaining days.

If you count again on the 24th and see 9 events with 4 working days left, you need 3 of those 4 days in the office. A count you only check at month-end would have shown this too late to fix, which is why a mid-month check matters as much as the logging itself.

How does an RTO tracker app log office days automatically?

An RTO tracker app uses the same idea as the Arrive trigger, but connects it to your attendance rule. In OfficeComply you pin your office once by searching the address, tapping the map, or tapping "I’m at the office right now" while you are there, then tap "Turn on auto-logging".

OfficeComply registers the pinned office with iOS region monitoring. When your iPhone arrives within about 150 metres, iOS wakes the app in the background, it records an Office day for today, and a notification confirms the day counted with your progress. The app needs "Always" location access so arrivals are noticed while it is closed, and your location stays on the device.

Because the app already knows your rule (days per week, days per month, or a percentage per month, calendar quarter, or rolling 90 days), the logged day immediately updates days done, days left, and an On Track, At Risk, or Non-Compliant status. Days you log yourself are never overwritten, and you can log WFH, Leave, or Holiday with one tap.

  • Platform: iPhone and iPad. No account, and records stay on the device.
  • Pricing model: free to start. Logging today and seeing your progress are free; automatic logging is part of OfficeComply Pro, along with planning, editing any day, reminders, insights, and CSV/PDF reports.

Shortcuts automation or an app: which should you use?

Use the Shortcuts automation if you only need a record of the days you went in, you are comfortable counting once a week, and your rule is a simple weekly count. Use an RTO tracker app if your rule is a percentage, a quarter, or a rolling window, if holidays and leave change the maths, or if you want to know mid-month whether you are still on track without building a counting shortcut.

  • Shortcuts: free and built in, but records only; no rule, no days-left figure, and you maintain it yourself.
  • RTO tracker app: rule-aware progress and planning, but it is another app, and automatic logging may be a paid feature.
  • Both depend on your iPhone being with you at the office, and neither replaces your employer’s badge or HR record.

Why does automatic logging sometimes miss a day?

Location-based logging is convenient, not perfect, so plan a quick weekly check whichever method you use. The common causes of a missed or wrong day are easy to spot once you know them.

  • Locked-phone failures: some Shortcuts actions do not run while the iPhone is locked. Prefer the Calendar action and test the automation on a locked phone before relying on it.
  • GPS drift: on large campuses or in dense city blocks, the arrival point can land on the wrong side of the boundary. Pin the main entrance rather than the middle of a large site.
  • Several offices: an Arrive automation covers one location, so create one per building you badge into.
  • Phone left at home or switched off: nothing is logged, so add the day by hand.
  • Wi-Fi as a backup: Apple also lists Wi-Fi among automation triggers. Joining the office network can be a second trigger for the same shortcut, but two triggers can create two events on one day, so count days rather than events.

The takeaway

A Shortcuts Arrive automation that writes an all-day Office event is a reliable, free way to record office days on iPhone, as long as you count them and do the maths yourself. If you want the counting done for you, OfficeComply logs the day when you arrive and shows exactly how many office days you have left under your rule.

Get OfficeComply on the App Store

Frequently asked questions

Can my iPhone track when I go to the office?
Yes. A Shortcuts automation with the Arrive trigger can run when you reach your office and add a calendar event, and RTO tracker apps such as OfficeComply use iOS location monitoring to log the office day automatically.
Why does my Shortcuts automation not run when my iPhone is locked?
Some actions, such as adding a row to a Numbers spreadsheet, have been reported to fail on a locked iPhone. Use the Calendar Add New Event action instead, and check the shortcut’s Privacy setting for "Allow Running When Locked".
Does automatic office tracking drain the battery?
It depends on your device and settings. After you turn on an Arrive automation or an app’s automatic logging, check Settings > Battery for a few days to see how much the app or Shortcuts uses.
Is an automatic log the same as my employer’s attendance record?
No. Your employer’s badge or HR system is the official record and may count days differently. A personal log helps you plan and spot discrepancies early.

References

This guide is general information, not legal, employment, or HR advice. Your employer’s written policy and official records always take precedence.

OfficeComplyFree to startGet