formula cost comparison