' A BONUS SUB-ROUTINE USING LINEAR INTERPOLATION :)
Sub LinearInterpolation(ByVal FromX As Long, ByVal FromY As Long, ByVal ToX As Long, ByVal ToY As Long, ByVal t As Single, ByRef ReturnX As Long, ByRef ReturnY As Long)
'this subroutine calculates the interpolated value