Set up a utility meter with two tariffs. This will create two sensors to track the different amounts for each tariff and a select entity you can use to switch between the tariffs.
Switch the tariffs using an automation. Trigger on the used daily energy (numeric state trigger) and use the select select-option action to set the required tariff.