mrhappyasthma / IsThisStockGood

A tool for evaluating companies using the Rule #1 investing principles.
http://www.isthisstockgood.com
22 stars 10 forks source link

Debt-to-equity ratio seems off #76

Closed mrhappyasthma closed 1 month ago

mrhappyasthma commented 1 month ago

MSFT reports

Debt-to-Equity Ratio (Most recent quarter)
--
34.899

Which feels wrong. Some quick google search results show 0.32 - https://www.gurufocus.com/term/debt-to-equity/MSFT#:~:text=Microsoft%20(Microsoft)%20Debt%2Dto,2024)

mrhappyasthma commented 1 month ago

(NOTE: i didn't have time to look into the code or the payload from MSN Money yet. I just noticed this while using the site)

kocielnik commented 1 month ago

The original value seems to be a fraction, later converted into a percentage in the Web UI.

debt-to-equity-msft

For 2023, the API-side value (link)was:

api-value

kocielnik commented 1 month ago

Upon dividing the API-delivered value by 100 to get a percentage, the value in the app now is in agreement with the MSN Money UI:

updated-debt-to-equity-isthisstockgood

mrhappyasthma commented 1 month ago

Amazing. Thanks for the quick fix!

mrhappyasthma commented 1 month ago

deployed live.