From 2fd1fe855af440a25e8da9c015d76c89384fe74a Mon Sep 17 00:00:00 2001 From: Aditya Bhaumik <92214013+aditya-bhaumik@users.noreply.github.com> Date: Thu, 8 Aug 2024 14:51:21 +0530 Subject: [PATCH 1/3] Add files via upload --- .../Restaurant-Planning-Calculator/index.html | 43 ++++++++++++ .../Restaurant-Planning-Calculator/scripts.js | 64 +++++++++++++++++ .../Restaurant-Planning-Calculator/styles.css | 68 +++++++++++++++++++ 3 files changed, 175 insertions(+) create mode 100644 Calculators/Restaurant-Planning-Calculator/index.html create mode 100644 Calculators/Restaurant-Planning-Calculator/scripts.js create mode 100644 Calculators/Restaurant-Planning-Calculator/styles.css diff --git a/Calculators/Restaurant-Planning-Calculator/index.html b/Calculators/Restaurant-Planning-Calculator/index.html new file mode 100644 index 000000000..50ef53e84 --- /dev/null +++ b/Calculators/Restaurant-Planning-Calculator/index.html @@ -0,0 +1,43 @@ + + + + + + Restaurant Planning Calculator + + + +
+
+

Restaurant Planning Calculator

+
+ + + + + + + + + + + + + + + + + + + +
+
+

Total Initial Cost: $0

+

Total Monthly Cost: $0

+
+
+
+
+ + + diff --git a/Calculators/Restaurant-Planning-Calculator/scripts.js b/Calculators/Restaurant-Planning-Calculator/scripts.js new file mode 100644 index 000000000..13435b5be --- /dev/null +++ b/Calculators/Restaurant-Planning-Calculator/scripts.js @@ -0,0 +1,64 @@ +document.getElementById("calculator-form").addEventListener("submit", function(event) { + event.preventDefault(); + + // Fetch the input values + let space = parseFloat(document.getElementById("space").value); + let staff = parseFloat(document.getElementById("staff").value); + let rent = parseFloat(document.getElementById("rent").value); + let utilities = parseFloat(document.getElementById("utilities").value); + let equipment = parseFloat(document.getElementById("equipment").value); + let salary = parseFloat(document.getElementById("salary").value); + + // Perform calculations + let initialCost = equipment + rent + utilities; + let monthlyCost = rent + utilities + (salary * staff); + + // Update the result section with the calculations + document.getElementById("initial-cost").textContent = initialCost.toFixed(2); + document.getElementById("monthly-cost").textContent = monthlyCost.toFixed(2); + + // Generate insights based on inputs + let insights = ""; + + if (space < 500) { + insights += "

Consider expanding your space to accommodate more customers and increase revenue.

"; + } else { + insights += "

Your space is sufficient for a moderate-sized restaurant. Ensure it's well-utilized.

"; + } + + if (staff < 5) { + insights += "

With a small staff, focus on efficiency and multi-tasking to keep operations smooth.

"; + } else { + insights += "

With a larger staff, ensure proper training and delegation to maintain high service quality.

"; + } + + if (rent > 5000) { + insights += "

Your rent is quite high. Consider negotiating with the landlord or finding a more affordable location.

"; + } else { + insights += "

Your rent is manageable. Ensure it's balanced with your expected revenue.

"; + } + + if (utilities > 1000) { + insights += "

High utility costs may impact your budget. Invest in energy-efficient appliances to save costs.

"; + } else { + insights += "

Your utility costs are within a reasonable range. Regularly monitor and optimize usage.

"; + } + + if (equipment > 20000) { + insights += "

Your initial equipment cost is significant. Ensure you're investing in quality equipment that lasts.

"; + } else { + insights += "

Your equipment cost is reasonable. Maintain and service equipment regularly to extend its life.

"; + } + + if (salary < 3000) { + insights += "

With lower salaries, ensure your staff are motivated through other means such as incentives and a good working environment.

"; + } else { + insights += "

Competitive salaries will help in retaining skilled staff. Regularly review and adjust salaries based on performance.

"; + } + + // Update the insights section + document.getElementById("insights").innerHTML = insights; + + // Show the result section + document.getElementById("result").style.display = "block"; +}); diff --git a/Calculators/Restaurant-Planning-Calculator/styles.css b/Calculators/Restaurant-Planning-Calculator/styles.css new file mode 100644 index 000000000..9a44c12b6 --- /dev/null +++ b/Calculators/Restaurant-Planning-Calculator/styles.css @@ -0,0 +1,68 @@ +body { + margin: 0; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; + background: linear-gradient(to right, #f8b500, #fceabb); +} + +.canvas { + background: white; + padding: 20px; + border-radius: 15px; + box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); +} + +.container { + width: 300px; +} + +h1, h2 { + text-align: center; + color: #333; +} + +form { + display: flex; + flex-direction: column; + align-items: center; +} + +label { + margin-top: 10px; +} + +input, button { + padding: 10px; + margin-top: 5px; + width: 100%; + border: 1px solid #ccc; + border-radius: 4px; + font-size: 1rem; +} + +button { + background: #f8b500; + color: white; + border: none; + cursor: pointer; + margin-top: 20px; + font-size: 1.2rem; +} + +button:hover { + background: #f7a000; +} + +#result { + display: none; /* Hide the result section initially */ + margin-top: 20px; + text-align: center; +} + +#insights { + margin-top: 20px; + text-align: left; + color: #333; +} From 9ab1003090763deb23678582bc3057d32fe62ddc Mon Sep 17 00:00:00 2001 From: Aditya Bhaumik <92214013+aditya-bhaumik@users.noreply.github.com> Date: Thu, 8 Aug 2024 14:55:16 +0530 Subject: [PATCH 2/3] Create README.md --- .../Restaurant-Planning-Calculator/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Calculators/Restaurant-Planning-Calculator/README.md diff --git a/Calculators/Restaurant-Planning-Calculator/README.md b/Calculators/Restaurant-Planning-Calculator/README.md new file mode 100644 index 000000000..bea80a1dc --- /dev/null +++ b/Calculators/Restaurant-Planning-Calculator/README.md @@ -0,0 +1,19 @@ +

Restaurant Planning Calculator

+ +## Description :- + +This Restaurant Planning Calculator helps users efficiently plan their restaurant by calculating the initial and monthly costs based on various inputs such as available space, number of staff, rent, utilities, equipment costs, and salaries. + +## Tech Stacks :- + + HTML + CSS + JavaScript + +## Features :- + +This Restaurant Planning Calculator helps users efficiently plan their restaurant by calculating the initial and monthly costs based on various inputs such as available space, number of staff, rent, utilities, equipment costs, and salaries. It provides detailed insights on cost management, space optimization, and budget planning. The intuitive interface ensures easy input and clear results, aiding in effective financial planning and resource management for restaurant owners. + +## Screenshots :- + +![image](https://github.com/user-attachments/assets/1ac11236-403c-4a98-9fbe-111bd4f15c9c) From 8ba5b7221a10eadfc42b8b33db7618789afc7838 Mon Sep 17 00:00:00 2001 From: Aditya Bhaumik <92214013+aditya-bhaumik@users.noreply.github.com> Date: Thu, 8 Aug 2024 15:03:44 +0530 Subject: [PATCH 3/3] Update index.html --- index.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/index.html b/index.html index 798b7d606..bfb325bf7 100644 --- a/index.html +++ b/index.html @@ -4161,6 +4161,20 @@

Calculates the overall budget for a rental payment.

+
+
+

Restaurant Planning Calculator

+

Calculates the overall budget for starting and running a restaurant.

+ +
+

Retirement Calculator