var initialValue = 100000;

for( var i = 0 ; i <= 100 ; i++ )
{
    var interest = initialValue * 0.05;
    initialValue = initialValue + interest;
    initialValue = initialValue / 1000;
    initialValue = Math.ceil(initialValue);
    initialValue = initialValue * 1000;
}

console.log(initialValue);