var weeks = 5;
var startPercentage = 100;

console.log(calculateDebt(startPercentage, weeks));

function calculateDebt(number, weeks){
  for (var i = 0; i < weeks; i++) {
    number = Math.ceil(number * 1.05);
	}
  
	return number * 1000;
}