Added days function

Not fully working, needs fix