Exposing function to retrieve the next invocation of a job

I had an example where I had 2 jobs scheduled (one to start and the other to stop a service). I needed to determine which job was going to fire first, so I needed to get the next run date of each job to compare them. This seemed to be the neatest solution I could think of.