fix weekmin calc