Wicket example for calculating amount