mine too. ...Wow same one. (Well i guess that was to be expected. Its just a formula after all huh?!)
;;;
;;; Example:
;;; 20 -- 2400
;;; 28 -- 3200
;;; Find the value for: 24
;;; (interpolate 20 2400 28 3200 24)
;;; -> 2800
(defun interpolate (n1 v1 n2 v2 n3)
(+ (* (/ (- v2 v1) (- n2 n1)) (- n3 n1)) v1))