new function to get amount of days + typesetting