compute tips spread