Clueless-Community / fintech-api

An API that helps you to deal with your financial calculations
MIT License
92 stars 105 forks source link

Endpoint to calculate Salary #203

Closed ighoshsubho closed 1 year ago

ighoshsubho commented 1 year ago
Njoguu commented 1 year ago

Hello @ighoshsubho, I noticed that the diluted-earnings-per-share endpoint takes in a payment frequency parameter, but it's not clear whether this parameter should be an integer (e.g. 1, 2, 3 month(s)) or a string (e.g. 'monthly', 'semi-annual', 'annual'). Can you please clarify this for me? Thank you!

ighoshsubho commented 1 year ago

It will be in strings like 'Hour', 'Day', 'Week', 'Month', and 'Year'. And sorry for the late response @Njoguu. I was a little busy with some other project. Should I assign you to this issue?

Njoguu commented 1 year ago

On it. One last issue, I'm a bit confused about the endpoint name and its functionality. The endpoint name (diluted-earnings-per-share) seems to be saying a different thing from what the endpoint is actually supposed to do (convert the salary amounts based on payment frequency), and I'm not sure if this is intentional or if there's been a misunderstanding somewhere. I would greatly appreciate it if you could help me better understand this endpoint and its intended functionality.

ighoshsubho commented 1 year ago

Oh sorry my bad, I was repeatedly getting this as a salary endpoint, make it salary-calculate, and refer to this -https://www.calculator.net/salary-calculator.html, for your reference.