update kit.el
This commit is contained in:
parent
fd16f0fcb2
commit
64b2dc47b1
|
@ -24,11 +24,11 @@
|
|||
(interactive "p")
|
||||
(setq total (* iday 180))
|
||||
(if (> total 800)
|
||||
(setq value (+ 800 (* 0.8 (- (* iday 180) 800)))
|
||||
tvalue (- (* iday 180) value)) ;; if true
|
||||
(setq value total ;; else part
|
||||
(setq value (+ 800 (* 0.8 (- total 800)))
|
||||
tvalue (- total value)) ;; if true
|
||||
(setq value total ;; else part
|
||||
tvalue 0))
|
||||
(message "You have worked %d day(s), and salary is %d, tax is %d." iday value tvalue)
|
||||
)
|
||||
|
||||
(cal-salary (string-to-number (elt argv 0)))
|
||||
(cal-salary (string-to-number (elt argv 0)))
|
||||
|
|
Loading…
Reference in New Issue