How to calculate Century by given year.