Function rule and cost calculations