The total electricity bill is calculated by summing the power consumption of all appliances, converting it to kilowatt-hours (units), and then multiplying by the rate per unit for the given period.