How cashflow modelling can act as an early warning system for financial shocks