# Create Algorithm Component Implementation

Copy the existing numeric validation plug-in `AdhocDateValidationAlgComp_Impl` and rename it to `AdhocDateAgeValidationiiiAlgComp_Impl` where `iii` is your initials.

Modify the annotation to replace the last Date Format soft parameter with two decimal parameters (`ageFrom` and `ageTo`).

In addition, modify the `validateDateInRange` method to check that the age (given date less the system's current date / 365.25) will be greater than the soft parameter `ageFrom` (if non-zero), and will be less than the `ageTo` (if non-zero). Make sure that negative numbers are allowed so that this plug-in can be used to compare against some future expiration date kind of scenarios.

Generate and build the java classes.

Note: The various adhoc characteristic value validation algorithms that come with the Oracle Utilities Software Development Kit are good references for algorithm plug-ins.
Parent topic: Creating Algorithm Spot Implementation Class