como calcular aviso retroativo