File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes how to Calculate fiscal month if start year and end date is given using JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to Calculate fiscal month if start year and end date is given using JAVA" Watch "how to Calculate fiscal month if start year and end date is given using JAVA" New topic
Author

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

shiva kr
Greenhorn

Joined: Dec 29, 2012
Posts: 2

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.


Regards,
shiva
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

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!


The quieter you are, the more you are able to hear.
shiva kr
Greenhorn

Joined: Dec 29, 2012
Posts: 2

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

Joined: Oct 02, 2003
Posts: 11257
    
  16

"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?


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to Calculate fiscal month if start year and end date is given using JAVA