Changed SPI calculation formula