Interact with the checkboxes below to simulate that a user was active on a given week. You can imagine this being the data stored in your analytics DB. Then select a week to simulate the current time and see if the user was active, retained, etc.
| What | Value | Explanation |
|---|---|---|
| Date List | [0,0,0,0,0,0,0,0] | N-weeks of activity, as an array. |
| Date List Int | 0 | N-weeks of activity, as a decimal integer. Pseudoformula: if active: sum += 2^i |
| Binary string | 00000000 | The DateListInt represented as an 8-bit binary string, padded. |
| Week bitmask | 1 | A decimal power of two with only the selected week’s bit set. JS Formula: Math.pow(2, 0) |
| Binary string | 00000001 | The same week bitmask as a padded 8-bit binary string. |
| Is active? | No | JS Formula: (0 & 1) > 0 |
| Is retained? | Indeterminate | Active current week AND active previous week JS Formula: (0 & 1) > 0 && (0 & 0) > 0 |