Divide Decimal By Date Formula

ricky76ricky76 Member Posts: 204
Is it possible to divide a decimal by a date formula. In my example the user can enter their amount eg. 300 and then a date formula eg 3M. With these two values i want to be able to split the amount by the date formula entered. In the example i would then get an answer of 100 as the 300 is divided by the number of months. Any help would be most appreciated.

Comments

  • garakgarak Member Posts: 3,263
    And what for date formula you will allow? What is with CM+5M-1D ?
    Do you make it right, it works too!
  • ricky76ricky76 Member Posts: 204
    They will only be able to add a simple date formula such as 5D, 3M etc etc.
  • MBergerMBerger Member Posts: 413
    Then why use a dateformula ? It would be much easier to just use 2 fields : one for the amount and one for the period. Advantage is that your have your number to divide AND that you don't have to write difficult code to make sure the user does NOT enter a formula like CM +2W -1D.
Sign In or Register to comment.