formula cost analysis