The cat has to learn to deal with being enjiggled.
Madness string 9831
It's always a lot easier when you don't have to design with reality as a constraint.
Complex questions like "what's the current day of the year" end up having simple, almost poetic answers like "calendar.ordinality(of: .day, in: .year, for: date)".