Compound interest and sinking funds