From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gkltFDNaX2NnOAEAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 06:16:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8DeTEjNaX2PunAAAG6o9tA (envelope-from ) for ; Mon, 31 Oct 2022 06:16:35 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E4FE130D43 for ; Mon, 31 Oct 2022 06:16:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opN92-0002p5-W7; Mon, 31 Oct 2022 01:15:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opN8x-0002nO-Q6 for emacs-orgmode@gnu.org; Mon, 31 Oct 2022 01:15:29 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opN8v-0005CE-G9 for emacs-orgmode@gnu.org; Mon, 31 Oct 2022 01:15:27 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D367C240026 for ; Mon, 31 Oct 2022 06:15:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667193322; bh=qPr698jgweIIIUCw2mMuCb4Xxee2wE3jqKd6m9bpuk4=; h=From:To:Cc:Subject:Date:From; b=I0sccJILTdelqs9UBqZ9RcPPCjFTe3U7AtOpv/QsGdz57rhN/pSPbXSr+V47Y+746 bG7iiVcVyfZkGFeTyR3UxUglexOIfkxNK95hjSDipX6q2vNibhSFmz1ucOzPgZnYxZ agzvo4KvSbqrOBfO69aoZmN5GL94w8YDuVY6rAKGmBOrZXTXoF1iEYbEvZEzQVh3p5 pMvG/ssHra+twaVwmR2GcoIE4u76EJZV9J3m7y310XcpcMEQyGVG32eDIYlsBzlvv/ SbOK3GLdVKGKj0gAVlR876C03FkFqRJWt1BKLSlyQRJb00wuSKboDGR/5Tvr2dDZSb YiIXa51JixSXg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N11Z12gt2z9rxF; Mon, 31 Oct 2022 06:15:20 +0100 (CET) From: Ihor Radchenko To: Jean Louis Cc: Renato Pontefice , emacs-orgmode@gnu.org Subject: Re: One thing each 3 days but maximum 10 In-Reply-To: References: Date: Mon, 31 Oct 2022 05:16:00 +0000 Message-ID: <878rkwlgj3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667193395; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+I+DlvWGW9J43VkKrNu9laUkVyt2AigJ9tPMowBiQVI=; b=sP0FkX5aBnu7tWEgsEni17vT3EMomBHPjdY5Lfty3yPjkmiSnjrBRHOUXIXjBCDDFqalEy 1SzwR0UZY+jTJ1Aayq8BfbTDM05Zl06oveLNvzmghkdxms+WHpTj+BRsuhWHg16Z3H9759 xRWlx7cLbvC3uuNaGOW9r3xsM/QcAAD/M+9RxinNHEJA0K0Gs1JZ8qY8arypPyCRHr3UqB CZhaO7QZrPdl+HZDnde/c9Eu55kC/Di6HtIBxZ7au+X5nYrFZlzSEI0S8e7TrlwQNHHzEL A/JDyuPllrBMGFdRhw6blpqbR2pceaYwYdZJHmAymAVs75C6m2uZOo+vFhXXQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667193395; a=rsa-sha256; cv=none; b=ZF6DAU+Gu+fTZmqkTpOty9aenBSWhJq5KGtJ47WnVgR0FjPGMqlVlvIcjML3kU3Ewz9DZv Qu8Ht/FIhU4ITFBw9zw9/BYr7gn3JIdkXptRPyEJzUvUxTeYc933i80OZxr7bGlToBBgtl l76p8vp/5Ay7euG8Fgru3HiUVwrMuJfE89ES/3kxvYsLNpu8CAtK/+2itVjPTvebUfLIrV UXGb3miJlAWTz21XfhAyU0i4VWx7eVJIzsPmwpFQhnA3WS64M9s4q2d0ecv4hceAp4risy PS2wWFpVQwAxgZvQItVpvZI1h2BpY82Esi/SdvgTqQW/tvswYzYA+dv/QQNCRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=I0sccJIL; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=I0sccJIL; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E4FE130D43 X-Spam-Score: -3.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: 42OlVtnHUKlx Jean Louis writes: > * Renato Pontefice [2022-10-30 19:11]: >> I have to take a pill each 3 days, but for max 10 times. >> So I set a TODO pill >2022-10-28 +3d> and each 3 days my calendar tell me that I have to take the pill. But is possible to say 1/10; 2/10; 3/10 etc? >> I nean to show how many pill I have already take? > > Use PostgreSQL to give you schedule: > > #+BEGIN_SRC sql :engine postgresql :results value raw > SELECT '** TODO Take pill again > SCHEDULED: <' || generate_series('2022-10-28', '2022-11-26', '3 day'::interval)::date || E'>\n' > AS "* My treatement"; > #+END_SRC > > #+RESULTS: > * My treatement > ** TODO Take pill again > SCHEDULED: <2022-10-28> > > ** TODO Take pill again > SCHEDULED: <2022-10-31> This is not a good idea for pills. Without SQL, one could also use org-clone-subtree-with-time-shift, but AFAIK, the whole idea behind schedule of taking pills is to retain certain concentration of medicine in the blood flow. Hence .+3d repeater (3d from the last time taking the pill) is more suitable. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at