The total cost shall be calculated as the sum of the funding cost, credit cost and the higher of swap and opportunity costs