def estimate(Q, M, P, S, N, T): return ((Q*M*P) / (S*N*T)) ** (1/T) # Gaming company # Probability of success Q = 0.05 # Market size in dollars M = 5000000000 # 5B #P: percent of the market attained in the first year P = 0.2 #S: average salary per person (in dollars per year) S = 100000 #N: headcount N = 3 #T: time to market (in years) T = 0.5 print estimate(Q, M, P, S, N, T) # Drug company # Probability of success Q = 0.05 # Market size in dollars M = 10000000000 # 10B #P: percent of the market attained in the first year P = 15 #S: average salary per person (in dollars per year) S = 50000 #N: headcount N = 30 #T: time to market (in years) T = 10 print estimate(Q, M, P, S, N, T)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question