Inspiration
Most people, and most banking apps, judge financial health by one number: the balance. We wanted to know whether that number tells you whether someone could actually survive losing their job.
So we looked at 4,500 real, anonymized bank accounts. The typical customer has over $22,000 in savings, which looks comfortable. But when we simulated a job loss with Employment Insurance paying 55% of income, 35% of accounts ran out of money before EI ended at 6 months. The reason: 54% of customers already spend at least 90% of what they earn.
We expected low earners to struggle most. The data said the opposite. Among the top 20% of earners, only 27% could outlast six months of EI, compared with 95% of the lowest earners. High earners keep the biggest balances, but they spend more too: their savings cover just 1.7 months of spending, versus 8.9 months for the lowest earners. The result held after we removed pensioners, with 752 customers in every income group.
Our biggest finding: the highest earners are the least prepared. Income isn’t the same as resilience. That’s what led us to build Resilience Rewired.
What it does
Resilience Rewired is a financial stress test for one customer at a time:
Know the customer. Enter any account_id to see typical income, spending, fixed costs, household bills, loan payments, savings buffer, and how that buffer ranks against all 4,500 accounts. Apply a shock. Pick a preset (job loss on EI, a furnace repair, or job loss plus bills up 15%) or adjust the sliders yourself. The engine recalculates the monthly gap and runway, meaning how many months the savings last, and shows the formula step by step. Make a plan. It sets a savings goal from today’s numbers and a backup plan for when the shock hits, such as “cut $3,171/month to last the 6 months of EI.” That cut comes from the customer’s discretionary spending, not from bills they can’t avoid.
How we built it
Data: provided by the organizers from Datathon. We used monthly_summary.csv for the core metrics and joined in loans.csv, clients.csv, dispositions.csv, cards.csv, standing_orders.csv and districts.csv to add loan status, age, card type, recurring payments, and regional unemployment and salary.
Metrics: we followed the judges’ definitions exactly. Income and spending are medians, so bonus months and one-off splurges don’t distort them. The buffer is the average daily balance over the last 6 months, so payday spikes don’t inflate it.
Engine and interface: Python and Streamlit, deployed on Streamlit Community Cloud so judges can enter any account live.
Challenges we ran into
The runway number can mislead. One customer showed “120 months” of runway even though they spend more than they earn. Their gap was only $65/month, so the result hit the 120 cap. We added the uncapped figure and separate labels for “small gap, capped” and “no shortfall”. One shock doesn’t fit everyone. For some customers, pension makes up 99% of income, so a job-loss shock doesn’t apply. The app now flags this instead of quietly showing a wrong scenario.
Same runway, different risk. One customer with a top-10% buffer commits 80% of income to bills and a loan. On EI, those fixed costs alone exceed their income, so cutting spending can’t close the gap and only their savings carry them. This showed us that runway alone doesn’t capture how much spending a customer can actually cut. Keeping it robust. Judges pick accounts live, so the engine had to handle short histories, accounts with no loan, and months with no activity.
Accomplishments that we're proud of
A finding that goes against intuition. The highest earners are the least prepared We ran the engine on all 4,500 accounts. Among the top 20% of earners, only 27% could outlast six months of EI after a job loss, compared with 95% of the lowest earners. High earners keep a median buffer of just 1.7 months of spending, versus 8.9 months for the lowest earners. The result holds after removing all pensioners.
The typical customer has over $22,000 saved, yet 35% of accounts run out of money before EI ends in a 55% income scenario. We traced the cause to thin monthly margins: 54% of customers already spend at least 90% of what they earn.
Honest about edge cases. The app shows the uncapped runway when the 120-month cap hides a small shortfall, and it warns when a job-loss shock doesn’t fit, such as for customers whose income is 99% pension.
Plans built from each customer’s own numbers. The backup plan gives a specific monthly cut, such as $3,171/month to last through 6 months of EI, and takes it from spending the customer can actually reduce, not from bills.
What we learned
Medians and averages over time describe a customer’s typical month far better than any single month. The most useful insight came from comparing customers, not from calculating each one alone. If a financial tool is going to be trusted, it has to show its formula.