Created attachment 136340 [details] [review] Possible fix Complete shot into the dark, but while double checking the code I've found that at least this calculation isn't correct.