結果 : check if date is within range python