The rule of matching principle for accrual basis accounting. Were you allowed to recognize all part of 3 million dollars revenue.Generally the expense and revenue are recognzied in matching pattern.