Notion Answers

Help between Notion users


Register & Ask

It's free & easy

Get answers

Answers, votes & comments

Vote and select answers

Receive points, vote and give the solution

Question

1vote

Coding a Spaced-Repetition Study Planner

I am trying to make a "Curve of Forgetting" study planner, with a date that is automated to change as I check off a day of studying.

The table included checkpoints of 5 Mins, 30 Mins, Day 1, Day 4, Day 7, Day 15, and Day 30.

To try and explain the problem better, I am trying to get the "Due Date" property to change based on which boxes I have checked off. For example, if I have checked off the 5 Mins and 30 Mins boxes, the date would automate to 1 day after the "Day 0" property, and on and so forth for all of the listed dates.

Here is my code:

if(prop("5 Mins"),formatDate(dateAdd(prop("Day 0"), 25, "minutes"),"MMMM D, Y H:mm A"),formatDate(prop("Day 0"), "MMMM D,Y H:mm A")), if(prop("5 Mins")&&prop("30 Mins"),formatDate(dateAdd(prop("Day 0"), 1, "days"),"MMMM D, Y H:mm A"),formatDate(prop("Day 0"), "MMMM D,Y H:mm A")), if(prop("5 Mins")&&prop("30 Mins")&&prop("Day 1"),formatDate(dateAdd(prop("Day 0"), 4, "days"),"MMMM D, Y H:mm A"),formatDate(dateAdd(prop("Day 0"), 1, "days"),"MMMM D, Y H:mm A")), if(prop("5 Mins")&&prop("30 Mins")&&prop("Day 1")&&prop("Day 4"),formatDate(dateAdd(prop("Day 0"), 7, "days"),"MMMM D, Y H:mm A"),formatDate(dateAdd(prop("Day 0"), 4, "days"),"MMMM D, Y H:mm A")), if(prop("5 Mins")&&prop("30 Mins")&&prop("Day 1")&&prop("Day 4")&&prop("Day 7"),formatDate(dateAdd(prop("Day 0"), 15, "days"),"MMMM D, Y H:mm A"),formatDate(dateAdd(prop("Day 0"), 7, "days"),"MMMM D, Y H:mm A")), if(prop("5 Mins")&&prop("30 Mins")&&prop("Day 1")&&prop("Day 4")&&prop("Day 7")&&prop("Day 15"),formatDate(dateAdd(prop("Day 0"), 30, "days"),"MMMM D, Y H:mm A"),formatDate(dateAdd(prop("Day 0"), 15, "days"),"MMMM D, Y H:mm A")) 

I have consulted Notion AI and have tried numerous ways of inputting this code, but I always get the error "End of input expected. [410,411]"

Any help would be greatly appreciated!

Please log in or register to answer this question.

...

Welcome to Notion Answers, where you can ask questions and receive answers from other members of the community.

Please share to grow the Notion Community!

Connect