/*
USER NOTE: this assumes the person wants to leave proportionate equity for a number of categories: coFounder, uncle, option pool, angel investors, employee number 1, Venture Capitalists, IPO,
USER NOTE: this assumes the person wants to leave proportionate equity for a number of categories: coFounder, uncle, option pool, angel investors, employee number 1, Venture Capitalists, IPO,
Inputs
investor
type
percent
requested
process
and defaults
investor
type intro percents
output
yes
is percentreq < investortype introper
no
is percentreq > investortype perc
*/
var
investorType = prompt("Who is the new investor? (options:
coFounder, uncle, optionPool, angel, employee1, VC, IPO");
var
requestedEquity = prompt("What percent of the company are they
seeking? 0-1");
var
dilutionModel = prompt("Would you like to use the dilution
model? (yes or no)");
var
sRatio = (100 - prompt("What percent would you like to retain?
(0-100)"))
/ 82.4;
if
(dilutionModel == "yes") {
if
(investorType == "coFounder") maxAllowance = .5 * sRatio;
else
if (investorType == "uncle") maxAllowance = .05 * sRatio;
else
if (investorType == "optionPool") maxAllowance = .2 *
sRatio;
else
if (investorType == "angel") maxAllowance = .167 * sRatio;
else
if (investorType == "employee1") maxAllowance = .018 *
sRatio;
else
if (investorType == "VC") maxAllowance = .333 * sRatio;
else
if (investorType == "IPO") maxAllowance = .083 * sRatio;
}
else if (dilutionModel = "no") {
if
(investorType == "coFounder") maxAllowance = .176 * sRatio;
else
if (investorType == "uncle") maxAllowance = .024 * sRatio;
else
if (investorType == "optionPool") maxAllowance = .1245 *
sRatio;
else
if (investorType == "angel") maxAllowance = .095 * sRatio;
else
if (investorType == "employee1") maxAllowance = .017 *
sRatio;
else
if (investorType == "VC") maxAllowance = .305 * sRatio;
else
if (investorType == "IPO") maxAllowance = .083 * sRatio;
};
if
(maxAllowance >= requestedEquity) {
alert("go
for it! They are requesting less than " + maxAllowance);
var
valuation = prompt("what is your company worth in dollars?");
alert("You
will get " + valuation * maxAllowance);
}
else alert("wait..They should request less than " +
maxAllowance);
No comments:
Post a Comment