Subroutine

A sub routine is usually a part of a program that does calculations & returns the result to your program to be used elsewhere in it.