In: Electrical Engineering
Ans: To calculate the electricity usage we use the following formula: It is for electric appliaces wise:
where
e= electricity charges
W= power of electrical appliance(in watts)(we can add power of all the devices)
H= time (in hours)
R= electricity rate (in $ or Rs. per KWh)
Matlab function for above formula:
function e= electric_usage_charge(w, h, r)
e = w*h/1000 * r;
clc; clear; close all; format bank; format compact
w = input('Enter power of your device ( in watts): ');
h = input('Enter time (in hours): ');
r = input('Enter electricity rate (in $ or Rs. per KWh): ');
e = electric_usage_charge(w, h, r)
To calculate the electricity usage we use the following formula: It is for square feet wise:
where
e= electricity charges
K = electricity consumption per sqft area of the house
A= total area of the house in sqft
R= electricity rate (in $ or Rs. per KWh)
Matlab function for above formula:
function e= electric_usage_charge(k, a, r)
e = k * a * r;
clc; clear; close all; format bank; format compact
k = input('Enter per sqft consumption ( in kilowattshour): ');
a = input('Enter area (in sqft): ');
r = input('Enter electricity rate (in $ or Rs. per KWh): ');
e = electric_usage_charge(w, h, r)
To calculate the electricity usage we use the following formula: It is for number of room wise:
where
e= electricity charges
K = electricity consumption per room of the house
N= total number of rooms in the house
R= electricity rate (in $ or Rs. per KWh)
Matlab function for above formula:
function e= electric_usage_charge(k, n, r)
e = k * n * r;
clc; clear; close all; format bank; format compact
k = input('Enter per room consumption ( in kilowattshour): ');
a = input('Enter number of rooms (in unit): ');
r = input('Enter electricity rate (in $ or Rs. per KWh): ');
e = electric_usage_charge(w, h, r)