For calculating the operating cost of an air conditioner the formula is kWh * kWh unit cost = cost to operate an AC for an hour.