Q Factor Formula