(pp: number)
| 77 | const days = hours / 24; |
| 78 | return `${days.toFixed(1)}d`; |
| 79 | } |
| 80 | |
| 81 | function fmtStabilityDays(days: number): string { |
| 82 | if (!Number.isFinite(days) || days <= 0) return '—'; |
| 83 | if (days < 30) return `${days.toFixed(1)}d`; |
| 84 | if (days < 365) return `${(days / 30.436875).toFixed(1)}mo`; |
| 85 | return `${(days / 365.25).toFixed(1)}y`; |
| 86 | } |
| 87 |