Giter Club home page Giter Club logo

developer-exercise's Introduction

Developer Interview Exercise

Zayo Labs

ROI Calculator

This application is a ROI Calculator built with React. A ROI (Return of Investment) calculator is an investment calculator that allows you to estimate profit and loss of investments and is particularly helpful when making financial decisions.

Tasks - Do as many as you'd like. Show us what you've got!

  • Break App.js down into reusable components.
  • Move calculation tool/utils to its own file.
  • Create a Node/Express backend (or stack of your choice) with a rest route to handle the calculations built in the render function of App.js
  • Make the totals (revenue, expenses, contribution profit, contribution margin, etc.) reflect a 24 month term (rather than 12) or make the term dynamic, allowing the user to specify a 12, 24, 36, 48, or 60 month term.
  • Any other improvements of the application.

Once you have completed the exercise, submit a PR with the base fork as zayo-labs/developer-exercise master. In the body of the PR, write a PRO/CON list addressing the original state of the application. What was done well? What was done poorly?

The app was built to mimic the functionality of the spreadsheet below.

ROI Spreadsheet

All of the bold fields are calculated fields and should not be editable. As additional revenue and expense items are added, the calculated fields should update automatically on the page. As items are deleted, the calculated fields should also update automatically on the page.

All fields should be formatted correctly: currency format, percentage format (for the Contribution Margin), and decimal format (for the Capital ROI).

The following formulas are used in the app to calculate financials:

  • One-Time Revenue = Sum of the one-time column of all revenue items
  • Monthly Revenue = Sum of the monthly column of all revenue items
  • One-Time Expense = Sum of the one-time column of all expense items
  • Monthly Expense = Sum of the monthly column of all expense items
  • Total Revenue = One-Time Revenue + Monthly Revenue * 12
  • Total Expenses = One-Time Expense + Monthly Expenses * 12
  • Monthly Contribution Profit = Monthly Revenue – Monthly Expenses
  • Total Contribution Profit = Total Revenue – Total Expenses
  • Contribution Margin = Total Contribution Profit / Total Revenue
  • Capital ROI (Months) = (One-Time Expenses – One-Time Revenue) / Monthly Contribution Profit

To get started:

// Fork and clone the repo

$ cd developer-exercise/
$ yarn                       // to install dependencies
$ yarn start                 // to start the server

Feel free to reach out with any questions.

developer-exercise's People

Contributors

jen-zayo avatar zayolabs avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.