If you want a very comprehensive answer, then this series of (3?) youtube videos might be interesting to you:
https://www.youtube.com/watch?v=QqF_OZJSbxY&list=PLyvdbTy3v1...
The author is focused on answering questions around Tesla's ramp up, but the explanations are pretty comprehensive and general.