• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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

 
Greenhorn
Posts: 2
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 825
5
Python Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
lowercase baba
Posts: 13013
66
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic