original_docstring:  mortgage debt and cash-on-hand for consumption 
docstring: mortgage debt and cash-on-hand for consumption
docstring_tokens: mortgage debt and cash - on - hand for consumption
code: def bz_func(i_h,LTV,x,mover,par):
      """ mortgage debt and cash-on-hand for consumption """
  
      # a. mortgage debt
      housing_value = par.ph*par.grid_h[i_h]
      b = LTV*housing_value
      
      # b. cash-on-hand for consumption
      z = x-(1-LTV)*housing_value
      if LTV > 0: z -= par.tau_f # financing costs
      if mover: z -= par.tau_h # moving-in costs
  
      return b,z
code_tokens: def bz_func ( i_h , LTV , x , mover , par ) : housing_value = par . ph * par . grid_h [ i_h ] b = LTV * housing_value z = x - ( 1 - LTV ) * housing_value if LTV > 0 : z -= par . tau_f if mover : z -= par . tau_h return b , z
short_docstring: mortgage debt and cash-on-hand for consumption
short_docstring_tokens: mortgage debt and cash - on - hand for consumption
comment: """ mortgage debt and cash-on-hand for consumption """$SEP$# a. mortgage debt$SEP$# b. cash-on-hand for consumption$SEP$# financing costs$SEP$# moving-in costs