A trading profit calculator