summaryrefslogtreecommitdiff
path: root/org-fc-algo-tn.el
diff options
context:
space:
mode:
Diffstat (limited to 'org-fc-algo-tn.el')
-rw-r--r--org-fc-algo-tn.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/org-fc-algo-tn.el b/org-fc-algo-tn.el
index 44583c6..9b547d4 100644
--- a/org-fc-algo-tn.el
+++ b/org-fc-algo-tn.el
@@ -4,8 +4,9 @@
(defun nth-tn (n)
"The mathematical formula for the Nth triangular number."
- (/ (* n (1+ n))
- 2))
+ (- (/ (* n (1+ n))
+ 2)
+ 0.5))
(defun org-fc-algo-tn-next-parameters (ease box interval rating)
"Calculate the next parameters of a card, based on the review RATING.