@Override public void calculateRevenueRecognitions(Contract contract) { long oneThirdRevenue = contract.getRevenue() / 3; long remainder = contract.getRevenue() % 3; contract.addRevenueRecognition( new RevenueRecognition(oneThirdRevenue, contract.getWhenSigned())); contract.addRevenueRecognition( new RevenueRecognition( oneThirdRevenue, addDays(contract.getWhenSigned(), firstRecognitionOffset))); contract.addRevenueRecognition( new RevenueRecognition( oneThirdRevenue + remainder, addDays(contract.getWhenSigned(), secondRecognitionOffset))); }