cost calculation for bandwidth optimization