---
title: "Comment by vaibhav khandelwal on \"SGB Discount Calculator - Buy Gold at a 30% Discount!\" | Hashnode"
description: "Hi, I have calculated the yield basis the code you have given (yield: (sgb.issuePrice * sgb.interestPayable) / sgb.askPrice), however the result is coming diffe"
url: "https://hashnode.com/posts/sgb-discount-calculator-buy-gold-at-a-30-discount/622c5849df08b9b823416e7d/comment/63281f9599624fc71cd50dd3"
---

[Discussion](https://hashnode.com/posts/sgb-discount-calculator-buy-gold-at-a-30-discount/622c5849df08b9b823416e7d)

Comment [SGB Discount Calculator - Buy Gold at a 30% Discount!](https://hashnode.com/posts/sgb-discount-calculator-buy-gold-at-a-30-discount/622c5849df08b9b823416e7d)

[vaibhav khandelwal](https://hashnode.com/@vaibhav230)

[Sep 19, 2022](https://hashnode.com/posts/sgb-discount-calculator-buy-gold-at-a-30-discount/622c5849df08b9b823416e7d/comment/63281f9599624fc71cd50dd3)

Hi, I have calculated the yield basis the code you have given (yield: (sgb.issuePrice \* sgb.interestPayable) / sgb.askPrice), however the result is coming different to what being shown at calculator website.

SGBJUL28IV: \[Issue Price (4852) \* Interest Payable (2.5%)\]/Ask Price (4838) = 2.51% compared with 2.74% yield on calculator website.

Can you please help on this ?
