The court doesn't normally take amounts you have received within the past 6 months, but all amounts you earned within the 6 months are figured in to your monthly average, which can affect your ability to file Chapter 7, or your Plan payment amount in Chapter 13.
Some people wait until 6 months from a windfall so it is not figured in, and others try to explain that the 6 month average is inflated and thus not indicative of your future earnings. I have done this from time to time with some success.
Of course, each court varies, but I'm sure your lawyer knows the local disposition regarding the Means Test and all its asinine complexity and can guide you through it.
Don't be stressed, that's what you pay your lawyer for. ;)
I hope this helps and a positive feedback is always appreciated if this was useful to you.
LEGAL NOTICE: I am only licensed to practice law in certain state(s) and I cannot give legal advice to someone who does not reside in a state in which I am licensed, nor shall anything I say in the above answer or elsewhere on this site be deemed legal advice, even to someone who resides in a state in which I am licensed. Fees I receive for answering questions are paid for information, not for legal advice. This forum is designed to provide general information only, and information herein is not warranted to be correct or applicable in any way since laws may have been misinterpreted herein, since laws change from time to time, and since the impact of those laws on any particular situation varies. The information presented in this site shall not be construed to be formal legal advice nor the formation of an attorney-client relationship. Persons accessing this response are encouraged to seek independent legal counsel in their jurisdiction for guidance regarding their individual circumstances. Do not take any action or inaction based on information presented herein since it is informational and may not be accurate or applicable to you; it merely attempts to give you a basis of knowledge to help you formulate questions to ask a legal or other professional in a face-to-face meeting in your jurisdiction. Joseph Ross does not hold himself out to be a specialist or expert in any area, regardless of assertions made by any third party, and any implication of being an expert or specialist herein is made in error. I hope the information presented above is useful to you. Answer above (c) by Joseph Ross, all rights reserved.