linear cost ftn