# Add Algorithm Type

Note: This is just an example for illustrative purposes.
Add a new algorithm type copying most of the entries for ADHV-DTD:

- Algorithm Type: CM ADHV-iiiJ where `iii` is your initials.
- Description: Validate Date Field (Age)
- Long Description: <Copy ADHV-DTD description here>. The Parameters From Age and To Age are optional decimals. The algorithm will check the "age" (current system date less the characteristic date / 365.25) is not less than the From Age (if non-zero) and is not more than To Age (if non-zero).
- Algorithm Entity: Characteristic Type - Adhoc Value Validation
- Program Type: Java
- Program name: com.splwg.cm.domain.common.characteristicType.AdhocDateAgeValidationiiiAlgComp where`iii` is your initials.
- Parameters:
  - Sequence: 1, Parameter: From Date, Required: Not Checked
  - Sequence: 2, Parameter: To Date, Required: Not Checked
  - Sequence: 3, Parameter: Date Format1 (Stored Format), Required: Checked
  - Sequence: 4, Parameter: Date Format2, Required: Not Checked
  - Sequence: 5, Parameter: Date Format3, Required: Not Checked
  - Sequence: 6, Parameter: Date Format4, Required: Not Checked
  - Sequence: 7, Parameter: Date Format5, Required: Not Checked
  - Sequence: 8, Parameter: Age From, Required: Not Checked
  - Sequence: 9, Parameter: Age To, Required: Not Checked

Algorithm Type

Parent topic: Plugging in Algorithms