manu-p-1 / meet

💳 Marqeta Hackathon Project - MEET - A structured and plan-based expense management platform for the modern age powered by Marqeta's modern card issuing API
MIT License
5 stars 2 forks source link

Stagger Biz to Dept amount and Dept to employee amounts during simulations #11

Open manu-p-1 opened 4 years ago

manu-p-1 commented 4 years ago

Descriptions

We want to stagger the amounts (randomize which departments get how much money) and do the same thing when employees receive funds from the department.

Proposition

Divide the main accounts GPA available balance by 0.2. This allows us to deposit up to 80% of the funds. From there, for each department or each user, select a random value to distribute. This is slightly more complicated than it seems and you'll end up running into some intracacies