Calculate the temporary and permanent hardness of water sample having the following the following constituents per litre:
$$ Ca(HCO_{3})_{2} = 162\, mg, MgCl_{2} = 95 =\, mg, $$
$$ NaCl = 585\, mg, Mg(HCO_{3})_{2} = 73\, mg, $$
$$ CaSO_{4} = 136\, mg $$