In my department, managers review a quarterly report for each employee. It provides an In-Office average per week. Less than 3 days in office will get you a talking to by your manager.
The report shows total days in office/travel (travel counts as in office), days with time away (PTO counts as day in the office), and holidays (counts as day in the office). The report displays a weekly calendar and indicates each day with "in-office", "time away", "holiday", or it's blank (meaning you were remote). Time onsite is not tracked currently.
Time in office isn't tracked currently. There can't be a metric for that to determine disciplinary action (like there can be for #days in office). If time in office becomes something added to the report, it will most likely be at the managers discretion to identify patterns (such as badging in and out in 30 mins 3 days a week).