diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-06-01 10:43:18 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-06-01 10:43:18 -0500 |
| commit | 2c60b40223600b62b711a5d38b3abeed28d4e802 (patch) | |
| tree | 3f809a4b15c6567f90d2c8c1403ff9333397b634 /src/models/Lab.ts | |
| parent | 6de688df96e15e55dce189533d7b7c1c84a77154 (diff) | |
Compute pay hours of a given lab
Diffstat (limited to 'src/models/Lab.ts')
| -rw-r--r-- | src/models/Lab.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/models/Lab.ts b/src/models/Lab.ts index 91cf3c9..b9025fa 100644 --- a/src/models/Lab.ts +++ b/src/models/Lab.ts @@ -51,4 +51,8 @@ export default class Lab { get location() { return `${this.building}-${this.room}`; } + + get pay_hours() { + return this.event.duration_mins / 50; + } }
\ No newline at end of file |
