change calculation for setdate to show