fixed calculation, format strings