Shared groceries expenses between roommates to be divided as per specific consumption ratio and attendance
When I was in grad school (at an engineering school) my apartment-mates and I came up with this formula: Worked marvelously.
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Shared groceries expenses between roommates to be divided as per specific consumption ratio and attendance

### Response:
When I was in grad school (at an engineering school) my apartment-mates and I came up with this formula: Worked marvelously.