# Leave calculation

**URL:** https://community.glideapps.com/t/leave-calculation/72057
**Category:** Ask for Help
**Created:** [March 26, 2024, 3:37pm UTC](https://community.glideapps.com/t/leave-calculation/72057 "2024-03-26T15:37:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![abhay.t](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@abhay.t](https://community.glideapps.com/u/abhay.t)
#### Post date: [March 26, 2024, 3:37pm UTC](https://community.glideapps.com/t/leave-calculation/72057/1 "2024-03-26T15:37:23Z")

</div>

![Screenshot 2024-03-26 at 21.04.58](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/e/5edda244b090d4f709dd9eaa388b0ffd6ff40d24.jpeg)  
 ![Screenshot 2024-03-26 at 21.05.11](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/2/a28bb1539c45434491524e1c48739a4c194643c4.jpeg)

This is an attendance log. Want to compute how many leaves a certain employee has taken and add that automatically to a certain column in another data sheet. How to do that?

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [March 26, 2024, 3:50pm UTC](https://community.glideapps.com/t/leave-calculation/72057/2 "2024-03-26T15:50:12Z")

</div>

> [@abhay.t](#):
>
> add that automatically to a certain column in another data sheet

First create a relation in that other table linking the user in it to the log table. Then create a Rollup column to count the rows in the relation.
