reset amount calculation