Created
June 9, 2015 15:00
-
-
Save nbouscal/ae736fd51e8fe71df0f8 to your computer and use it in GitHub Desktop.
org proportion of expense
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
proportionOfExpense = do | |
split <- getSupportedOrgSplit | |
centralExpense <- forOrg central getOrgSubtotalExpense | |
let shareOfCentral = split * centralExpense | |
totalExpense <- getSupportedOrgTotalExpense | |
let proportion = shareOfCentral / totalExpense | |
return proportion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment