Real.fmt (StringCvt.FIX (SOME 2)) n
val basePerMonth = 5.0
+val deposit = basePerMonth * 3.0
fun main _ =
let
val amount = C.realFromSql amount
val perMonth = basePerMonth * real shares
- val deposit = perMonth * 3.0
val headsUp = deposit + perMonth * 2.0
in
if amount >= headsUp then
write "\nCc: payment@hcoop.net";
write "\n\n";
+ write "(This e-mail supercedes the one sent a few hours ago, which may have had an\n";
+ write "incorrect deposit amount.)\n\n";
+
if amount < deposit then
(write "Your HCoop balance is negative. This means that you've paid less than you've\n";
write "been charged to date, excluding your required deposit. If your account hasn't\n";