Maddyhome Forums

Discussions related to software developed at maddyhome.com
It is currently Fri May 24, 2013 12:06 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Dates in Calculations
PostPosted: Thu May 03, 2012 12:59 am 
Offline

Joined: Sun Apr 29, 2012 11:54 am
Posts: 11
I have a category which contains items with the original cost, purchase date and an annual rate of price change. I would like to create a calculation field which provides an approximate current value for the item. This would be great as it could be used to sum the current replacement value of the items for insurance purposes.

Purchase Date: 1-Sep-05
Cost: 1,300.00
Index: 3% p.a. (0.03)

I would like to be able to calculate:
Current Insured Value: (((Now - Purchase Date) / (Factor to get years old) * (Index)) + 1) * Cost

Currently you cannot add Date fields as attributes to a calculation if you want the result as a decimal / integer. Could this be added, or is there another way of doing this? It would be great for MyStuff2 to be able to capture and record the current insured value of items.


Top
 Profile  
 
PostPosted: Thu May 03, 2012 1:13 am 
Offline
Site Admin

Joined: Thu Aug 14, 2008 9:26 pm
Posts: 1683
Yeah, this is a gap in what MyStuff2 supports. MyStuff2 will do "today() - Some Date" and give you a Term result. But there is no support for getting anything useful out of the Term value.

I need to add the ability to convert a Term result into a number where you specify if the number is the number of years, months, or days.

This is now on my TODO list.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group