How to construct survival tables from duration tables | Hacker News Reader