Answer:
It depends.
Step-by-step explanation:
If it's takeout chinese, probably a week or so. If it's spaghetti, probably just a couple days. If it shows signs of mold (ex. discoloration, white fluff, stickiness), THROW AWAY IMMEDIATLEY. DO NOT, UNDER ANY CIRCUMSTANCES, CONSUME. Thank you, have a nice day.