I just joined a gym

So I joined a gym and have gone a few times and I :explode: am becoming acclimated with the machinery and everything. But how am I supposed to know how much time on cardio and weight training. Also, which cardio machines burns the most calories ?