When Can I Let My Kitten Roam Free In My House??

i live in new york, so i have to have my cat on a leash. i know that its illegal but how long can he go without being in a crate? and when can i let him roam free in my house??

i just moved here from california where you dont need to keep your cats closed up or on a chain all the time. any advice would be great!!