• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to Calculate fiscal month if start year and end date is given using JAVA

 
shiva kr
Greenhorn
Posts: 2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to calculate the fiscal months between start year(e.g 2012) and end date(28/02/2014) and the fiscal year starts from october.
 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is not so much related to Java as it is to finance and accounting. You need to TellTheDetails in order to expect help. If you know how you would do that by hand it would be valuable information here.

Welcome to the Ranch!
 
shiva kr
Greenhorn
Posts: 2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for e.g the date given is 23/02/2014 and the start year as 2012 and fiscal year starts from OCTOBER month
then we have to consider whole FY2012,FY2013 and (5/12)FY2014.question is how to calculate fiscal month number 5?
How 5 is coming i will explain. from OCT(2013),NOV(2013),DEC(2013),JAN(2014) till FEB(2014).so total 5 fiscal months completed till the given date.
so this i want to calculate using java.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12084
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"for example" isn't really a spec. Sure, it may help illustrate what needs to be done, but it is NOT what is needed.

also...until you can explain how to calculate it in English (or any other Natural language), don't think in terms of java.

So...what difference does the start year make? If the start year had been 2000, wouldn't you still come up with 5 as the answer? You'd still count Oct - Feb of 2013/2014, getting five, right?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic