View Single Post
Old 01-06-2024, 08:02 PM   #3
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 899
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
I have the following code for what you ask for, because I also use it and I have asked about it in the forum, since I couldn't find the original message I'll leave it here.
Create a custom column of name days
Column generated from other columns
In template paste this code adding the name of your columns of the start and end dates of readings
Code:
 program: format_number(days_between(raw_field('#your date column ended'), raw_field('#your date column started')),"{0:5.0f}")
and it will look like the picture
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	94
Size:	53.0 KB
ID:	205629  

Last edited by dunhill; 01-06-2024 at 08:04 PM.
dunhill is offline   Reply With Quote