Section 2: Percentage and Calendar Functions

31

Keystrokes

Display

 

 

14.052004\

14.05

Keys in date and separates it from

 

11,09,2004 6

number of days to be entered.

 

120gD

The expiration date is 11 September

 

 

2004, a Saturday.

 

When D is executed as an instruction in a running program, the calculator pauses for about 1 second to display the result, then resumes program execution.

Number of Days Between Dates

To calculate the number of days between two given dates:

1.Key in the earlier date and press \.

2.Key in the later date and press .

The answer shown in the display is the actual number of days between the two dates, including leap days (the extra days occurring in leap years), if any. In addition, the hp 12c also calculates the number of days between the two dates on the basis of a 30-day month. This answer is held inside the calculator; to display it, press ~. Pressing ~again will return the original answer to the display.

Example: Simple interest calculations can be done using either the actual number of days or the number of days counted on the basis of a 30-day month. What would be the number of days counted each way, to be used in calculating the simple interest accruing from June 3, 2004 to October 14, 2005? Assume that you normally express dates in the month-day-year format.

Keystrokes

Display

 

11.09

Sets date format to month-day-year.

 

 

(Display shown assumes date remains

 

6.03

from preceding example.)

6.032004\

Keys in earlier date and separates it

 

 

from the later date.

10.142005

498.00

Keys in later date. Display shows

 

 

actual number of days.

~

491.00

Number of days counted on the basis

 

 

of a 30-day month.

File name: hp 12c_user's guide_English_HDPMBF12E44

Page: 31 of 209

Printered Date: 2005/7/29

Dimension: 14.8 cm x 21 cm