var currentTime = new Date()
var year = currentTime.getFullYear()

var totalyear

totalyear = year - 1840

document.write(totalyear)
