Think about the electricity a toaster uses. Two mica sheets wrapped in nichrome wire deliver the heat. A thermometer or capacitor calculates the time needed (assume three minutes for a two slice toaster).