calculate total leave days on load
diff --git a/hr/doctype/leave_application/leave_application.js b/hr/doctype/leave_application/leave_application.js
index 2f2e3dc..0252818 100755
--- a/hr/doctype/leave_application/leave_application.js
+++ b/hr/doctype/leave_application/leave_application.js
@@ -21,7 +21,8 @@
 	if(!doc.posting_date) 
 		set_multiple(dt,dn,{posting_date:get_today()});
 	if(doc.__islocal) {
-		cur_frm.set_value("status", "Open")
+		cur_frm.set_value("status", "Open");
+		cur_frm.cscript.calculate_total_days(doc, dt, dn);
 	}
 	cur_frm.set_df_property("leave_approver", "options", "");
 	cur_frm.call({
@@ -34,7 +35,6 @@
 			cur_frm.cscript.get_leave_balance(cur_frm.doc);
 		}
 	});
-	cur_frm.cscript.calculate_total_days(doc, dt, dn);
 }
 
 cur_frm.cscript.refresh = function(doc, dt, dn) {