fixed diamond calculation