set width of calendar to given time inputs