I have two entities Transaction and Account. one Account holds many transactions. I use this piece of code to calculate t