# Calculate with dates

**URL:** <https://community.silverfin.com/t/calculate-with-dates/681>\
**Category:** Templates\
**Tags:** variables, math, attribute\_date\
**Created:** [February 27, 2018, 3:34pm UTC](https://community.silverfin.com/t/calculate-with-dates/681 "2018-02-27T15:34:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [March 1, 2018, 4:24pm UTC](https://community.silverfin.com/t/calculate-with-dates/681/2 "2018-03-01T16:24:34Z")

</div>

Hey @Julie_Vandekerckhove,

The answer can be found here :

> [@How to retrieve historical information in details](https://community.silverfin.com/t/how-to-retrieve-historical-information-in-details/664/2):
>
> @Bart_Verhaeghe, Where do you want to retrieve this information? In the account template, or do you want to retrieve it somewhere else? Part of your solution is in [here](https://community.silverfin.com/t/case-how-to-display-details-of-an-account-in-a-text-template/275/5), if you want to retrieve it somewhere else. And I don’t get your example; shouldn’t it be 100+50+60 = 210? thinking Whatever your object is where that data is stored for each stock movement, you’ll need to go over your collection again with a for-loop, and put an if-statement in there that adds the cumulative amount in a re…

Let us know if it worked for you?

---

_[View the full topic](https://community.silverfin.com/t/calculate-with-dates/681)._
