Returns the balance of a periodic savings by using variable interest rates.
| Category: | Financial |
| Returned data type: | DOUBLE |
specifies the value that is returned is the balance of the savings at the base date.
| Requirement | Base-date is a SAS date. |
| Data type | DOUBLE |
specifies the date of the first deposit. Subsequent deposits are at the beginning of subsequent deposit intervals.
| Requirement | Initial-deposit-date is a SAS date. |
| Data type | DOUBLE |
specifies the value of each deposit. All deposits are assumed constant.
| Data type | DOUBLE |
specifies the number of deposits.
| Data type | INTEGER |
specifies the frequency at which deposits are made.
| Requirement | Deposit-interval is a SAS interval. |
| Data type | CHAR |
specifies the compounding interval.
| Requirement | Compounding-interval is a SAS interval. |
| Data type | CHAR |
specifies the time at which rate takes effect. Each date is paired with a rate.
| Requirement | Date is a SAS date. |
| Data type | DOUBLE |
specifies the interest rate as numeric percentage that starts on date. Each rate is paired with a date.
| Data type | DOUBLE |
select savings(date'2005-01-01', date'2000-01-01', 300, 24, 'month', 'qtr', date'2000-01-01',4.00);
8458.794159
select savings(date'2005-01-01', date'2000-01-01', 300, 24, 'month', 'qtr', date'2000-01-01', 4.00, date'2001-01-01', 4.25, date'2002-01-01', 4.50, date'2003-01-01', 4.75, date'2004-01-01', 5.0);
8665.5059376
select savings(date'2001-01-01', date'2000-01-01', 300, 24, 'month', 'qtr', date'2000-01-01',4);
3978.69037121739