In [2]:
# 読書計画用スニペット
from datetime import date
import math

def reading_plan(title, total_number_of_pages, period):
    
    current_page = int(input("Current page?: "))
    deadline = (date(*period) - date.today()).days
    remaining_pages = total_number_of_pages - current_page
    
    print(title, period, "まで", math.ceil(remaining_pages / deadline), "p/day 残り",
          remaining_pages, "p/", deadline, "days" )
    
    print(date.today(), ":", current_page + math.ceil(remaining_pages / deadline), "pまで")

In [ ]:
reading_plan("『哲学は何を問うてきたか』", 38, (2020,6,15))


Current page?: 70
『哲学は何を問うてきたか』 (2020, 6, 15) まで -1 p/day 残り -32 p/ 27 days

In [ ]:
reading_plan("『死す哲』", 261, (2020,6,15))


Current page?: 48
『死す哲』 (2020, 6, 15) まで 8 p/day 残り 213 p/ 27 days
$$I_{xivia} \approx (twitter + instagram + \Delta facebook ) \bmod 2$$$$I_{xivia} \approx (note + mathtodon) \bmod 2$$

In [ ]:
reading_plan("『メノン』", 263, (2020,10,17))


Current page?: 9
『メノン』 (2020, 10, 17) まで 2 p/day 残り 254 p/ 151 days

In [ ]:
date(2020, 6, 20) - date.today()


Out[ ]:
datetime.timedelta(5)

In [3]:
reading_plan("『饗宴 解説』", 383, (2020,6,20))


Current page?: 364
『饗宴 解説』 (2020, 6, 20) まで 19 p/day 残り 19 p/ 1 days
2020-06-19 : 383 pまで

In [ ]: