user-defined function

Noun

 * 1)  A program or subroutine, provided by the user rather than being built into the system, that may return a value and may take input parameters.