Ratchet consumption over finite and infinite planning horizons