Calculating the straight-line amortization involves dividing the cost of the trademark, patent or franchise by the number of years until it expires.