Towards Calculations of the Total Energy of Large Systems