# Proper way to calculate spread between bonds and Swap

In the place I work they are calculating the spread between bonds and swaps as follow...

Is this the "right" way to calculate spreads between two instruments? Or what would be the proper way? The inputs are basically bid and asks.