{
  "title": "Show how a UTC event crosses a reporting-day boundary",
  "synthetic": true,
  "inputs": {
    "hour": 23,
    "offset": 2
  },
  "outputs": [
    {
      "label": "Local hour",
      "actual": 1,
      "expected": 1,
      "passed": true
    },
    {
      "label": "Day offset",
      "actual": 1,
      "expected": 1,
      "passed": true
    }
  ],
  "constraints": [
    "v.hour<24",
    "v.offset<=14"
  ],
  "formulas": [
    {
      "label": "Local hour",
      "javascript": "((v.hour+v.offset)%24+24)%24"
    },
    {
      "label": "Day offset",
      "javascript": "Math.floor((v.hour+v.offset)/24)"
    }
  ],
  "limits": "Fixed offsets do not capture daylight-saving changes or historical timezone rules. This exercise does not transform real event timestamps and cannot certify a platform’s date-grouping configuration."
}
