Text this: Mathematics of investment and credit