Applying for a Driving license

So i am turning 18 soon and i am taking driving lessons and whatnot. I want to know how much does the actual license cost and when can i start applying/ how long does it take

The person that is teaching me is saying that it costs 500-400$ currently but i feel like that is a rip off Also i heard there is a computer and a physical exam?