Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IAfanasov/56668c6b4f22ee2beee1de20eef1dcc3 to your computer and use it in GitHub Desktop.
Save IAfanasov/56668c6b4f22ee2beee1de20eef1dcc3 to your computer and use it in GitHub Desktop.
/**
* @param {{startDay:number, finishDay:number, itemsPerDay:number}} param0
* @returns {number}
*/
function calcItemsUsedBetweenDays({ startDay, finishDay, itemsPerDay }) {
return (finishDay - startDay) * itemsPerDay;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment