real and more complex mark calc algorithm