Fixed incorrect variables in century calculations