When is Prince Charles going be king?

When the Queen dies, Charles automatically becomes King. However, there are controversies surrounding that there might a generation skip meaning William, 2nd to the throne & Charles' first born, would become King instead of Charles.