calculating field is not working always