correct setdate calc