From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: CLOCKTABLE multiply time expended by hourly rate? Date: Wed, 27 Jul 2011 13:25:46 +0200 Message-ID: <87tya7wzas.fsf@altern.org> References: <87y5zsws3j.wl%ded-law@ddoherty.net> <87d3gzuvzj.fsf@gnu.org> <8762mqwdri.wl%ded-law@ddoherty.net> <8762mqjcpd.fsf@gnu.org> <87vcuquisf.wl%ded-law@ddoherty.net> <87fwltrhyo.fsf@gnu.org> <87tya9upx3.wl%ded-law@ddoherty.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qm5TS-0006oU-RQ for emacs-orgmode@gnu.org; Wed, 27 Jul 2011 10:52:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qm5TR-0002ai-T0 for emacs-orgmode@gnu.org; Wed, 27 Jul 2011 10:52:38 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:53929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qm5TR-0002aM-NF for emacs-orgmode@gnu.org; Wed, 27 Jul 2011 10:52:37 -0400 Received: by wyg36 with SMTP id 36so1307220wyg.0 for ; Wed, 27 Jul 2011 07:52:36 -0700 (PDT) In-Reply-To: <87tya9upx3.wl%ded-law@ddoherty.net> (Daniel E. Doherty's message of "Tue, 26 Jul 2011 08:34:00 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Daniel E.Doherty" Cc: Org-mode List Hi Daniel, Daniel E.Doherty writes: > I am trying to take a duration output by CLOCKTABLE and multiply it by > dollars-per-hour (or dollars-per-second, either way) and get an answer > in units of dollars. I see, thanks for the explanation. > Can you suggest a way this can be done? Since latest git commit, you can now use ;t instead of ;T as a flag for durations computations. ;t will output results according to the new variable `org-table-duration-custom-format', which you can check. See this example: #+begin_src org | Task 1 | Task 2 | Total | |---------+----------+----------| | 2:12 | 1:47 | 03:59:00 | | 3:02:20 | -2:07:00 | 0.92 | #+TBLFM: @2$3=$1+$2;T::@3$3=$1+$2;t #+end_src .92 is a fraction of hours, because `org-table-duration-custom-format' is set to 'hours. HTH, -- Bastien