Fixed fg value calculation