Skip to content

Commit

Permalink
Add a function to calculate in-hand salary
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-nath committed Feb 6, 2023
1 parent 6a93246 commit c7371ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dev-setup/.functions
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,10 @@ function dcd() {
docker-compose down
fi
}

# calculate monthly in-hand salary
function inhand() {
if [ $1 -gt 0 ]; then
echo $((($1 * 0.75) / 12))
fi
}

0 comments on commit c7371ac

Please sign in to comment.