Calculates the number of days between two dates based on a 360-day year (twelve 30-day months), which is used in some accounting calculations. Use this function to help compute payments if your accounting system is based on twelve 30-day months.
DAYS360(start_date,end_date,[method])
=DAYS360("2/28/93", "3/1/93", FALSE) returns 1 day
because the DAYS360 function ignores the extra days added to February.=DAYS360("2/29/96","3/1/96", FALSE) returns 1 day for
the same reason.=DAYS360("2/28/93", "3/1/93", TRUE) returns
3 days because the DAYS360 function is counting the extra days added to February to give
February 30 days.=DAYS360("2/29/96", "3/1/96", TRUE) returns
2 days for the same reason.| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ValueEval | evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1)
Implements org. |
| public ValueEval | evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2)
Implements org. |
| private static double | |
| private static Calendar | |
| private static int[] | |
| private static int[] | |
| private static boolean |
| Days360 | back to summary |
|---|---|
| public Days360() | |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) Implements org. Doc from org. see
| |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2) Implements org. Doc from org. see
| |
| evaluate | back to summary |
|---|---|
| private static double evaluate(double d0, double d1, boolean method) | |
| getDate | back to summary |
|---|---|
| private static Calendar getDate(double date) | |
| getEndingDate | back to summary |
|---|---|
| private static int[] getEndingDate(Calendar realEnd, int[] startingDate, boolean method) | |
| getStartingDate | back to summary |
|---|---|
| private static int[] getStartingDate(Calendar realStart, boolean method) | |
| isLastDayOfMonth | back to summary |
|---|---|
| private static boolean isLastDayOfMonth(Calendar date) | |