Hope you're well. 🎩 I find YouTube's date-trimming on video thumbnails rather amusing. I did it back then with my close-enough vibe. But recently, when I compared it to actual YouTube frontend, hm... 🤔 That's different. Nifty, that. Analysis As I've observed, the pattern goes like this: 0 day = 0 day. 1 day = 1 day. 2 days = 2 days. ... 6 days = 1 week. 7 days = 1 week. 8 days = 1 week. 9 days = 1 week. ... 12 days = 2 weeks. 13 days = 2 weeks. 14 days = 2 weeks. ... 1 month, 2 weeks, X days = 2 months. ⬆️ See the pattern? The trimming logic goes as such: Let: Y = years M = months W = weeks D = days and M_max = 12 (months per year) W_max = 4 (weeks per month, approximated) D_max = 7 (days per week) Then the rounding rule: if D ≥ ½·D_max ➡️ W = W + 1, D = 0 if W ≥ ½·W_max ➡️ M = M + 1, W = 0 if M ≥ ½·M_max ➡️ Y = Y + 1, M = 0 Hence the result is: ceil(Y, M, W, D) ⬆️ Increment the larger unit whenever ...