There is no laws which precise the timing for writing off of liabilities. However, management should judge the remoteness for any future claim to arise from the liability. Hope this answer your question.
There is no law that forces the writing off liabilities after three years. However, for tax purposes such liabilities will be added back as income and tax will be applied to such income including such liabilities.