put in (some time) on (something)
To invest some amount of time to something or some activity. I've put in months of my life on this project, so it's really gut-wrenching to see it get canceled at the last minute. You can't just put in an hour or two on an instrument and expect to suddenly master it.