Additional Code explained in the tutorial

return () => { return getField("days",true)*100+getField("type",true); }