simple realtime calculation of a sum with Angular