This program calculates the amount of your phone-bill.

How to use:

When the program starts a menu occour whit 6 items:

	| LOK1 | LOK2 | REG | LAND | MOBIL | EXIT |

The first five items tell the calculator the price for the calling. In danish Kroner:

	LOK1: 19,2 Kr/h
	LOK2: 20,16 Kr/h
	REG: 28,2 Kr/h
	LAND: 42 Kr/h
	MOBIL: 141 Kr/h

Select the type of call. When you have finish the call press exit,
and the calculator will calculate the price and put it on the stack.
It will also add in into the variable called PRIS.

If you like this piece of code, please contact me:
Sren Bkhj Kjr
Grnnegade 10, 1.Th.
9000 Aalborg
Denmark
phone: +45 9812 5452
macdane@control.auc.dk
http://www.control.auc.dk/~macdane/


Cut here:
----------------------
%%HP: T(3)A(R)F(.);
DIR
  RING
    \<< DATE TIME DUP
'time' STO TSTR
OBJ\-> DROP DROP DROP
DROP DROP 'name'
STO
      IF time 8 <
time 19.3 \>= OR name
'SUN' SAME OR
      THEN .5
      ELSE 1
      END 'ratio'
STO { { "LOK1"
      \<< 19.2
'price' STO
      \>> } { "LOK2"
      \<< 20.16
'price' STO
      \>> } { "REG"
      \<< 28.2
'price' STO
      \>> } { "LAND"
      \<< 42 'price'
STO
      \>> } { "MOBIL"
      \<< 141 'price'
STO
      \>> } { "EXIT"
      \<< TIME time
HMS- HMS\-> price
ratio * * .125 +
DUP pris + 'pris'
STO 'name' 'time'
'price' 'ratio'
PURGE PURGE PURGE
PURGE 0 MENU
      \>> } } TMENU
    \>>
  pris
0
END
