State two factors on which the electrical energy consumed by an electrical appliance depends.