Compounding Interest and Thermo Problem