Code snippet to show difference between Compound and Simple increases