Expenditure patterns for risky R and D projects