Created
May 28, 2020 11:16
-
-
Save IAfanasov/56668c6b4f22ee2beee1de20eef1dcc3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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