Problem 18
with some dynamic programming
Problem 19
using a datetime library :)
Problem 20
pretty straightforward