Text this: Allocation of transmission losses to determine tariff