home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Lion Share
/
lionsharecd.iso
/
dos_misc
/
qcalc113.zip
/
BUDGET.QC
next >
Wrap
Text File
|
1991-10-30
|
600b
|
36 lines
;
; BUDGET
;
#
# BUDGET.QC, calculates your earnings.
#
# Usage: QCALC @budget.qc (hit ESC or any key to continue)
#
~ /f ; Turn on financial printing.
# Enter your hourly wages (before taxes)
;
!hw ; Prompt user to input information, and store it in var hw
;
#
# Your paycheck is:
paycheck:hw*40 ~ ; ~ = pause
#
# Your income is:
income:paycheck*52 ~
#
# Estimated percentage paid to taxes:
/f% tax_pct:if(gt(income,40000),.35,.25) /%f ~
#
# After taxes, you'll have:
income-income*tax_pct