Func getDateThrough working with negative number