Any agreed leave period taken during services is counted as part of service as per Labor law. So your total tenure should be more than 5 years.