equation for joules needed to increase water temp

q = mass H2O x specific heat H2O x (Tfinal-Tinitial)