finding perhour amount and checking with console.log