Startup Calc - საწყისი კაპიტალის ანგარიში
ბიზნესის დაწყება: ვიცით რომ კონკრეტული ბიზნესის დასაწყებად საჭიროა პირველადი ხარჯის გაღება 5000ლ, ხოლო ყოველ თვე ქირის, დასუფთავების და კომუნალური გადასახადების ხარჯი ერთობლივად იქნება 1000ლ; დასაწყისისთვის გჭირდება 1 თანამშრომელი, რომელთა ანაზღაურებებია და ხარჯი 2200ლ, ხოლო მას შეუძლია თვეში 20 კლიენტის მოყვანა; ყოველ თვე შეგიძლიათ მხოლოდ 1 თანამშრომელი დაამატოთ; ხოლო მაქსიმუმ კომპანიას შეუძლია ყოველ თვე 1000 კლიენტს მოემსახუროს. ახალ კლიენტს პირველ ჯერზე მოაქვს 100 ლარიანი მოგება ხოლო ყოველ მომდევნო თვე 10ლ. ხარჯი გაქვთ: 5000ლ+((1000ლ+2200ლ) * M), სადაც M თვეები რაოდენობაა; მოგება: 1 თვე - 2000 2 თვე - 2000+200 3 თვე - 2000+400 4 თვე - 2000+600 5 ... 6 ... 7 თვე - 2000+1200; აქ სწორდება ხარჯები; თუმცა ხარჯი წინა თვები ზარალზე გვტოვებს. ამოცანა: 1. ერთი თანამშრომლის შემთხვევაში დათვალეთ როდი გახვალთ მოგებაზე და აჩვენეთ გრაფიკი, შემოსავალ-ხარჯები; 2. თუ ყოველ თვე ახალ თანამშრომელს დაამატებთ, როდის გახვალთ მოგებაზე და აჩვენეთ გრაფიკი, შემოსავალ-ხარჯების;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Starter Template for Bootstrap</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Custom styles for this template -->
<link href="style.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">ბიზნესის დაწყება</a>
</div>
</div>
</nav>
<div class="container">
<div class="col-xs-12">
<h2>1. მოგებაზე გასვლა ერთი თანამშრომლით</h2>
<br>
<div>
<table class="table table-striped">
<thead>
<tr>
<th>Month</th>
<th>Total Payout</th>
<th>Total Income</th>
<th>Sum Total</th>
</tr>
</thead>
<tbody>
<?php
/* ხარჯები */
$total_Payout = 5000;
$month_Communal_Payout = 1000;
$employee_Payout = 2200;
/* თანამშრომელი და კლიენტები */
$number_Of_Employee = 1;
$customers_On_Employee = 20;
/* შემოსავალი */
$total_Income = 0;
$month = 0;
$max_Debt = 0;
while ($total_Income < $total_Payout){
$total_Payout += $month_Communal_Payout + $employee_Payout;
$total_Income += $number_Of_Employee * $customers_On_Employee * 100 + $month * 200;
$month++;
$sum_Total = $total_Income - $total_Payout; //9200
if ($max_Debt > $sum_Total)
$max_Debt = $sum_Total;
echo <<< EOT
<tr>
<th scope="row">$month</th>
<td>$total_Payout ₾</td>
<td>$total_Income ₾</td>
<td>$sum_Total ₾</td>
</tr>
EOT;
}
?>
</tbody>
</table>
<h4>2. ერთი თანამშრომლის შემთხვევაში თანხა, რომელიც საჭიროა მსგავსი საქმის დასაწებად, რათა გადაფაროთ ყველანაირი ხარჯი მათ შორის ხელფასები</h4>
<div class="col-xs-12">
<?php
$abs_max_debt = abs($max_Debt);
echo "<h2>$abs_max_debt</h2>";
?>
</div>
<br/>
<br/>
<h2>3. ყოველ თვე თუ ახალი თანამშრომელი დაემატება</h2>
<table class="table table-striped">
<thead>
<tr>
<th>Month</th>
<th>Total Payout</th>
<th>Total Income</th>
<th>Sum Total</th>
</tr>
</thead>
<tbody>
<?php
/* ხარჯები */
$total_Payout = 5000;
$month_Communal_Payout = 1000;
$employee_Payout = 2200;
/* თანამშრომელი და კლიენტები */
$number_Of_Employee = 1;
$customers_On_Employee = 20;
/* შემოსავალი */
$total_Income = 0;
$month = 0;
while ($total_Income < $total_Payout){
$total_Payout += $month_Communal_Payout + $employee_Payout;
$total_Income += $number_Of_Employee * $customers_On_Employee * 100 + $month * 200;
$month++;
$number_Of_Employee++;
$sum_Total = $total_Income - $total_Payout;
echo <<< EOT
<tr>
<th scope="row">$month</th>
<td>$total_Payout ₾</td>
<td>$total_Income ₾</td>
<td>$sum_Total ₾</td>
</tr>
EOT;
}
?>
</tbody>
</table>
</div>
</div>
</div>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
</body>
</html>
.starter-template {
padding: 40px 15px;
text-align: center;
}
წიგნები