How long does it take to resolve a writ petition?