I've now replicated the formula in Excel.