Contract Duration and the Costs of Market Transactions