Como calcular o registro retroativo?