I’m exploring Bases and I want to play around with the formulas. For the books I read, I put in Finish-Start to give me a duration for how long it took me to read. Great.
But, the results I get when I finished it in less than a day are “a few seconds” or when it takes a month it says “a month”. I want to use the If function to change “a few seconds” into <24 hours or “a month” → 1 month.
I’m not clear on why you want to make the duration a string (or I guess I’m not clear on what you’re planning to do with the string after that?) because it will still “say” the same thing. But one quick way (out of several) to use the pattern that you started is:
A few other forum threads try to address your larger goal of getting a more precise and friendly duration display, but in essence, I think this could work for you:
That’s a tricky one “if” logic in Obsidian can feel more limited than you expect. I ended up going in circles until I realised I was mixing syntax styles from different plugins.