Techno-Economic Assessment of On-Farm Anaerobic Digestion System Using Attached-Bioﬁlm Reactor in the Dairy Industry

: In this study, a techno-economic assessment of an on-farm biogas system using an anaerobic bioﬁlm reactor utilizing cow manure as a fermentation substrate was evaluated. A projection model was developed using Microsoft Excel software with three outputs, the size and dimension of a bioreactor, experimental microbial kinetic studies, and the economic studies based on the experimental results. Characterization analysis of cow manure wastewater showed the total solid (TS), total volatile solid (TVS), total carbohydrate (TC), chemical oxygen demand (COD), and pH values which were 10.95 g/L, 8.65 g/L, 6.65 g/L, 57.80 g/L, and 7, respectively. Using the modiﬁed Gompertz equation for the microbial studies, it was found that, at 37 ◦ C and 20 days hydraulic retention time (HRT), the biogas yield was 934.54 mL/gVS, the volume of biogas produced was 11.28 m 3 /d, and 22.56 kWh of electricity was generated. The Gompertz prediction helps to determine the optimal HRT for the system so that the microorganisms are at their optimum stage to produce biogas. The economic analysis was done, and the results illustrated that, when the rate of cow manure produced was at 55 L/day.cow, the net present value (NPV) was RM 611,936.09, with a 13% internal rate of return (IRR), 0.14 return on investment (ROI), and 7.02 years of payback period (PP). By developing a techno-economic assessment that included all the necessary parameters such as sizing of the bioreactor, microbial kinetic studies, and economics of the plant, farmers could easily implement the system into their farms. This model showed that the anaerobic digestion system utilizing an attached bioﬁlm with cow manure as a fermentation inoculum and substrate was applicable on an industrial scale to generate electricity and reutilize to the farm, at the same time generating additional income from the production of fertilizer. H.C.M., Z.Z.A.; J.B.T. N.S.J.; J.B.T.; N.S.J.; J.B.T.; supervision, N.S.J.; J.B.T.;


Introduction
Over the past few decades, the high reliance on fossil fuels has negatively affected the community, the people, and the environment in terms of climate change and environmental degradation. Malaysia has a high demand in the agricultural sector and urbanization as a developing country, resulting in poor management of the environment [1]. Therefore, the quest to find renewable and sustainable energy as an alternative energy source is growing more urgently than ever as time passes. The need to integrate cleaner energy is clear to be seen [2]. Multiple researchers have researched producing biogas from biomass as an alternative energy source [3]. The composition of biogas contains a large percentage of methane (CH 4 ) (60%) and carbon dioxide (CO 2 ) (35-40%). Biogas also consists of other gasses such as ammonia (NH 3 ), hydrogen sulfide (H 2 S), hydrogen (H 2 ), oxygen (O 2 ), nitrogen (N 2 ), and carbon monoxide (CO) in small quantity [4].
Besides that, biomass is usually collected from agriculture, including municipal food waste from restaurants, households, and markets, while livestock waste such as animal manure is considered biomass too. Livestock production in Malaysia shows a trend of increment, which indicates that there is also an increment in biomass waste ("Jabatan Perkhidmatan Veterinary," n.d.). Animal manure, such as cow manure, contains a high percentage of fibers due to their herbivore diet. The high fiber content in cow manure increases its potential to be used as a feedstock in the fermentation of biogas production [5]. Using animal manure as feedstock not only helps in reducing the emission of greenhouse gases (GHGs) in the environment but promotes sustainable manure management in intensive livestock production areas, especially to close nutrient cycles [6]. Lack of land for manure disposal and increasingly stringent requirements demand more effective manure management strategies and alternatives. Hence, this could be a solution to the problems mentioned.
The dairy farm's biomass waste was given a new life as biogas and other valuable byproducts such as electricity and crop fertilizer. Electricity is generated by using the methane gas produced from the anaerobic digestion system [7]. In this system, an attached biofilm is formed on a suitable support carrier in which granular activated carbon (GAC) is used. It is common to use biochar which undergoes pyrolysis as an attachment carrier for immobilizing the microorganisms [8]. It is known that a higher concentration of the microbes helps in producing higher biogas yield [9] which means that more electricity can be produced in this case. GAC is selected as the carrier for attachment because GAC has a high surface area which mainly consists of porous structure enabling a high density of colonization for the microorganisms [10]. In this study, the GAC used was made of a coconut shell which is widely available in a tropical country such as Malaysia. The coconut shell is part of the abundant biomass which can be easily found. The shells then undergo the pyrolysis process, hence resulting in a type of biochar as well. It is mentioned as GAC due to its size which is in granulated form. The granulated form of biochar provides better adsorption compared to powder form. On the other hand, biomass waste is often used as crop fertilizers. The wastewater from the process can then be used as fertilizer for the plantation of grass which then is fed to the cows on the farm [11]. From there, an infinity loop of resources can be created when waste is turned into energy and reusable product, as the saying goes "waste to wealth" [12].
However, there is less literature that involves the design parameters of an anaerobic digester by using biomass such as cow manure. A techno-economic assessment by using Microsoft Excel software for biogas production using cow manure wastewater was outlined as one of the easy approach modeling systems for the industry. This assessment focused on assessing the feasibility of the anaerobic system on a dairy farm through the aspects of technology and economy. In terms of technology, the sizing of the reactor was evaluated based on calculations using information obtained from a small-scale dairy farm in Malaysia, such as the number of cows, operating hours, volume of cow manure effluent, hydraulic retention time, and organic loading rate. Hence, a complete dimension of the reactor can be calculated based on the design suggested. On the other hand, this project used an attached biofilm which is an innovative technology to be introduced in the anaerobic system. Different from the common digester found in the market, attached biofilm is suggested to be employed in the system because by using the attachment method for immobilization, biogas yield is found to be higher and more stable [13]. Therefore, a labscale bioreactor was used for 50 days to determine the suitability of using this technology in the system. Furthermore, the microbial kinetic studies are vital in predicting the electricity produced in this project. Experimental work was carried out to comprehend the biogas system's designs, such as fermentation temperature, hydraulic retention time, and volume of inlet effluent. These critical issues need to be addressed and analyzed when designing an anaerobic bio-digester, producing optimum results.
The economic analysis began with calculating fixed capital cost, total investment cost and operational cost, the value of profit, and cash flow. Even though there is no detailed explanation on how the conversion of biogas to electricity is presented in this article, important aspects were taken into consideration when it comes to the economy part, such as the total purchase cost of major equipment including the water pump, gas scrubber, Genset facilities, and other building materials. This study also evaluated several economic parameters, including net present value (NPV), internal return rate (IRR), profitability index (PI), and payback period (PP) [14].
The purpose of this research project was to assess the on-farm anaerobic digestion system mobilized on the attached-biofilm reactor by utilizing cow manure wastewater in the dairy industry. The techno-economic model was developed using Microsoft Excel based on the microbial kinetic studies obtained from the experimental analysis. The first objective was to analyze the characteristics of cow manure, including total carbohydrate (TC), chemical oxygen demand (COD), total solids (TSs), and total volatile solids (TVSs). These characteristics were then used as a basis for the bioreactor's calculation and designs in the model. Secondly, a lab-scale anaerobic digestion system was used to investigate the microbial kinetic studies using the modified Gompertz equation. From the microbial studies, researchers can predict the suitable retention time for the system as the modified Gompertz equation shows the activation and stationery phases of the microorganisms. The highest biogas yield can also be evaluated based on the experimental analysis. Lastly, the economic parameters were evaluated by using the method developed using Microsoft Excel software. The parameters involved will be reviewed in output where the payoff is proportional or higher than the investment, which is highly favorable in the industry. In conclusion, the target of this project was to provide a modeling system for farmers to apply this technology in their farms with a detailed design of the reactors and to predict the biogas production which then can be used as an alternative source of energy as well as managing the cost of building this system.

Collection of Cow Manure
The cow manure used in this study was obtained from a dairy farm at Ladang 16, University Putra Malaysia. The farm was estimated to have 200 milking cows where the flow rate of cow manure produced was between 45 and 55 L/day.cow. Raw samples were collected at the manhole and stored in the refrigerator at 4 • C to keep the sample's quality at an optimum. Key physicochemical characteristics of cow manure, including TS, TVS, COD, TC, and pH, were determined.

Bioreactor Design Dimensions
According to the design considerations of an anaerobic digester for producing biogas loaded with cow manure written by M. Edwin and S. Joseph, the designs were built on several volumes.
The volume of the bio-digester was calculated by a series of formulas. The various dimensions were the volume of gas collecting chamber (V c ), volume of gas storage chamber (V gs ), volume of fermentation chamber (V f ), and volume of sludge layer (V s ). The total volume of the biodigester is the summation of all volume stated, V = V c + V gs + V f + V s . Geometrical dimensions of the biogas digester are given in Table 1. The shape of the bioreactor was a cylinder with rounded edges, as shown in Figure 1.
The cylinder body of the bioreactor was separated into a few parts representing different volumes which were V 1 , V 2 , and V 3 . R was the radius of the bioreactor while H was the height of the bioreactor. R 1 , R 2 , f 1 , f 2 , S 1 , and S 2 each represented the rounded radius, the height, and the curved surface radius of the top and bottom parts of the bioreactor, respectively.

For Volume For Geometrical Dimensions
Where K = gas production rate per digester volume per day. For K = 0.4 m 3 /m 3 .day

Microbial Kinetic Studies
A lab-scale anaerobic digestion system was developed to analyze the microbial kinetic studies. The modified Gompertz equation using Microsoft Excel Solver was used to determine the cumulative biogas production. Theoretically, the modified Gompertz equation is as follows: P = cumulative of the specific biogas production (mL/gVS), A = biogas production potential (mL/gVS), U = maximum biogas production rate (mL/gVS.day), λ = lag phase period or minimum time required to produce biogas (day), e = mathematical constant having value 2.718282, t = period of biogas production (day). The cow manure wastewater collected was cultured overnight then acclimatized using a sequencing batch system in a mesophilic condition (37 • C), pH 7, and later used as the inoculum source for fermentation. The optimum temperature of fermentation is often reported to be 30-38 • C [15].
The percentage of the attached biofilm added into the medium was chosen at 25% (v/v), equivalent to 200 mL at 1:1 inoculum to GAC as a microbial support carrier in 800 mL working volume of a 1 L bioreactor. The concept of using attached biofilm is where the microorganisms are already attached to the carrier, and therefore they are more concentrated and well-adsorbed on the surface of the carrier, which in this study was GAC. Therefore, 25% of attached biofilm meant that 25% of the total working volume was occupied with the biofilm that was the GAC that consisted of microorganisms that had been attached to it and formed a layer of biofilm. The biofilm acted as the inoculum of the reactor in the anaerobic digestion system. Twenty-five percent inoculum was chosen in this study because, based on Bo Hu's findings, 30% inoculum increased the biogas productivity over 50% when compared to the production with only 15% inoculum [16]. The system was run at a hydraulic retention time (HRT) of 14 days with an initial pH7. The gas produced was monitored using the water displacement method, where the measuring cylinder was set up inverted in the hydrochloric acid solution (pH 2) to avoid leaking gases. The volume of biogas was recorded daily [13].

Economic Analysis
An economic analysis was conducted for the biogas system. The life span of this biogas system was estimated to be 20 years. The selling price of electricity is RM 0.35/kWh, according to TNB Malaysia [17].
Working capital is the capital needed to operate the production process from when the raw material is bought until the realization of cash. Working capital was calculated as 5% of fixed capital to cover the cost of initial solvent change. The fixed capital was calculated using the factorial estimation method, where the factors were listed in Table 2. The factors mentioned in Table 2 were the typical factors for the estimation of a project fixed capital cost. These factors were based on Coulson Richardson's Chemical Engineering Vol. 6, Chemical Engineering Design 4th edition, under chapter 6, page 269. In the book, the table lists the items that are related to estimating the cost of a project. Values for major equipment such as piping and storage were reduced because the farm that was being assessed in this study has developed an existing site with some of the basic facilities including a storage tank and an anaerobic pond. Therefore, for site development and ancillary buildings, these 2 factors were not included in this assessment either.
Total investment value includes the component of working capital and fixed capital as shown in Equation (2): The operational cost can be divided into two groups, which are fixed operating and variable costs. Hence, to calculate operation cost we summed up these two groups of costs as shown in Equation (3) below: NPV value is the deduction result of the present value of proceeds with the current value of investment cost, as shown in Equation (4).
where n is the year when the expense or revenue takes place, CF is cash flow at period n, and k is the discount rate (7.398%). This discount rate was taken into account for both opportunity costs and risk premiums. IRR was calculated as the discount rate at which NPV equals zero, where k is the interest rate. The subsidies were not taken into account in the calculation. The formulas of other parameters were as shown in Equations (5) and (6) below: PI = ∑ Present value of proceeds Present value of initial investment (5) where A = the last year when the cash accumulation positive, B = the last positive cash accumulation value, and C = the proceeds in the first year when cash accumulation negative. The biogas feeds a combined heat and power (CHP) unit of 38% net electric efficiency and 48% thermal efficiency. Power was assumed to sell directly to the grid with no additional losses [18].
According to Tenaga Nasional Berhad, a dairy farm is considered under medium voltage general specific agriculture; Air Selangor believes a dairy farm falls under commercial. Therefore, the price of purchased utilities presumed is listed in Table 3.

Computer Software
The software used in this study was Microsoft Excel 2016. The parameters monitored were bioreactor dimension, microbial kinetic studies, and various economic studies listed in Table 4.
The Microsoft Excel techno-economic assessment aimed to create a biogas production model. The parameters listed in Table 4 above can be generated automatically when the user keys in several required inputs. It gives users the convenience to come up with a biogas production model and economics studies that users may find helpful in their initial stage of project development.

Characteristics of Cow Manure
The TS and TVS values for cow manure were 10.95 g/L and 8.65 g/L, which was considered high. Dairy cows were commonly being fed with grass, and thus they already processed the food with the microorganisms in cow's rumen, leaving cow manure with high lignocellulosic contents, including cellulose, hemicellulose, and lignin [19]. The TC reading in cow manure was relatively low, with 6.65 g/L. The low total carbohydrate content in cow manure was also related to its lignocellulosic content, causing the cow manure to be hardly hydrolyzed by acid [15]. Other than that, cow manure had a high COD value, which was 57.80 g/L. The high reading of COD was a result of the cow's high fiber diet. A dairy cow's daily food consisted of fiber, including grass and high protein soybean meal [18]. The pH of cow manure was 7, which was neutral.

Relationship between the Flow Rate of Cow Manure and Volume of Bioreactor
The volume of cow manure effluent in the unit of L/day.cow produced from the factory ranged from 45 to 60 L per day per cow, with 200 cows in the factory. Working volume (WV) was first calculated using Equation (7): where COD is chemical oxygen demand (g/L), and OLR is the organic loading rate (kg COD/m 3 .day). The manure collected from the farm was kept in a 10 L bottle and left to settle down for a few days. The manure was separated by gravity into two distinct layers. Heavy particles in the manure were settled to form a bottom layer. The 4 L sediment mainly consisted of digested grass and grain that were fed to the cows on the farm. The upper layer, termed the manure slurry supernatant, was siphoned from the bottle and was collected as the feed for the bioreactor without further filtering. The 6 L slurry supernatant was stored in the refrigerator at 4 • C until use [20]. Therefore, 60% was considered as the supernatant of the total cow manure wastewater produced by the farm. Hence, the volume of the bioreactor was calculated based on the manure slurry supernatant.
It was fixed that the bioreactor had a 20% headspace of the total volume of the bioreactor, which made the remaining 80% to be the working volume.
From Table 5, it was shown that with the minimum rate of cow manure produced at 40 L/day.cow, the working volume of the bioreactor was 96 m 3 . Along with the rate increment, from 45 to 55 L/day.cow, the working volume increased from 108 m 3 to 132 m 3 . The maximum working volume in this study was 144 m 3 with a rate of 60 L/day.cow. Based on this study, when the rate of cow manure produced was too low, the biogas plant could not function efficiently as the biogas production could be very low and it might not be able to generate a sufficient amount of electricity to be used on the farm. On the other hand, when the rate of cow manure produced was too high, more biogas could be produced, but more funds and space would be needed to construct the large size of the biogas plant [21]. Hence, 55 L/day.cow was selected in this assessment as the plant size was sufficient in terms of electricity generation and also wise in terms of capital. The working volume of the bioreactor was evaluated at 132 m 3 , and the total bioreactor volume was 165 m 3 .

Relationship between Rate of Cow Manure and HRT
The HRT of the biogas system is related to the flow rate of cow manure as shorter HRT would require more cow manure to be supplied to the system. The flow rate was calculated as WV divided by HRT. The feeding frequency of the system was based on the changing of HRT while keeping the initial sugar concentration at constant [22]. Sugar played an important role in dark fermentation as sugar was the provider of energy for the microbes. Total carbohydrate is known as one of the important characteristics influencing the production of biogas. A sufficient concentration of sugar content could help to boost the anaerobic system. On the other hand, if the sugar supply is low, microbes undergo deficiency of energy supply, thus causing low production of biogas [12]. The calculated results are illustrated and tabulated in Table 5.
When the HRT of the biogas system was set to be 20 days, the flow rate of cow manure per day was the highest, with the value ranging from 4.8 to 7.2 m 3 /day. However, when the HRT was set to be 60 days, the inlet flow rate was only between 1.6 and 2.4 m 3 /day, which did not vary much even when the rate of cow manure produced increased from 40 to 60 L/day.cow. The results in Table 5 further suggest that the higher the HRT, the lower the inlet flow rate of the bioreactor [23]. From the previous discussion, the rate of cow manure produced was selected at 55 L/day.cow; hence the optimum HRT in this study was 20 days where the flow rate of cow manure was the highest at 6.6 m 3 /day. A higher inlet flow rate results in higher biogas yield too [24].

Bioreactor Design
With known working volume, the detailed geometrical dimension could be calculated as stated in Table 1. The dimensions of the bioreactor were then calculated and tabulated in Table 6 below. As the rate of cow manure produced increased, the bioreactor's overall volume would increase too. The headspace of an anaerobic digester plays an important role in fermentation [25]. A sufficient volume of headspace was required for the reactor to perform optimum anaerobic digestion [26]. High pressure inside the reactor negatively impacted the fermentation as the environment was not conducive for the anaerobic reaction to work [27].

Microbial Kinetic Studies
Anaerobic fermentation was carried out to find biogas yield (P), which was considered as a crucial index to evaluate the biogas production process. The biogas produced using cow manure as a medium was plotted against time and then fitted using the modified Gompertz equation [8]. From the fitting, biogas production potential, A (mL/gVS), maximum biogas production rate, U (mL/gVS.day), and lag phase, λ (days), were determined.
From the graph of the modified Gompertz equation, it was shown in Figure 2 that the process achieved a steady-state, which required a long period of HRT [8]-in this study the experiment was carried out for 50 days. Through the Gompertz graph, it was shown that the activity of the microorganisms started after one to two days of anaerobic fermentation. Throughout the experiment, the process was still under the activation phase which was clearly shown in the graph where the biogas production was increasing exponentially [10]. After Day 20, Gompertz predicted that the process slowed down and inclined toward the stationary phase. A constant volume of biogas produced was achieved on Day 40 when the volume of biogas produced only had a very slight fluctuation. Hence, from the Gompertz prediction, it was shown that the most suitable HRT for cow manure anaerobic digestion system was 20 days as the microorganisms are still active to produce gases. If the HRT was to be prolonged, the biogas production would slow down. Furthermore, it was also shown that GAC is a suitable support carrier for the cultivation of microorganisms in biogas production. Biofilms formed on the surface of GAC were stable, and they provided an environment that was rich in nutrients that favored the microbes [28]. When fitted into the modified Gompertz equation, it was found that the highest biogas production A = 934.54 mL/gVS, maximum biogas production rate U = 60.55 mL/gVS.day, and lastly lag phase λ =1.04 days. A similar experiment was done by another researcher who found that the optimum daily methane yield was 102 mL/gVS within 50 days. When the experiment was prolonged for another 50 days, the daily methane yield was 146 mL/gVS [22]. Another research also showed that by using cow manure alone as the substrate in anaerobic digestion, 144 mL/gVS of methane was obtained daily [29].
Using the results shown in Table 7, they were then substituted back into the equation with a different HRT to determine the biogas yield. As mentioned earlier, an HRT of 20 days was used in this assessment due to its suitability with the Gompertz prediction, and the biogas yield (P) was obtained at 848.66 mL/gVS. Previous studies stated that a longer HRT provided a more extended period for the cellulose of cow manure to be degraded, hence producing higher biogas yield [30], but the experimental data showed that, in this case, it was not necessary to have a long-overdue HRT since the maximum gas that could be produced was only 934.54 mL/gVS. Hence, 20 days HRT produced about 850 mL/gVS, and it was sufficient for the system to generate electricity. Therefore, the volume of biogas produced in this study was estimated to be 11.28 m 3 /day, and the volume of biogas produced per HRT was 225.6 m 3 . By using the equation, however, different HRTs could be applied and resulted in a different production of biogas. Hence, the volume of biogas produced per HRT is more appropriate as 225.6 m 3 of biogas was predicted to produce within 20 days, the optimum HRT that was applied in the equation for this study. Other researchers have also found that co-digestion of cow dung resulted in higher biogas yield which directly affected the energy yield obtained from the anaerobic digestion system [31]. Wheat straw was one of the typical substrates used in the anaerobic digestion system. When 5% of cow manure was replaced with wheat straw, an average of 30% enhancement in methane yield was obtained compared with fermenting cow manure alone. However, another researcher also deduced that there was no apparent improvement in either way [32]. Utilizing cheese whey in co-digestion with cow dung also showed good economic performance and positive returns. Co-digestion with 30% of cheese whey substrate increased the biogas production, resulting in a higher electricity selling price which was the key parameter to determine the accountability of the system [33]. Another researcher evaluated the technical and economic feasibility of anaerobic digestion implementation at a dairy farm in Italy. It was shown that good methane yield was obtained at 437.3 NmLCH 4 /gVS. Inoculum-to-substrate was applied at a ratio of 6 [34]. However, cheese production is not widely introduced in dairy farms in Malaysia. Since the assessment was done based on a dairy farm in Malaysia, it was difficult to include co-digestion in this article as this should be a modeling system that is easily adaptable for local farmers on a small-scale farm.

Electricity
One of the primary products of this anaerobic digestion system was the production of electricity using the biogas produced. Based on Swedish Gas Technology Centre essential data on biogas in 2012, 1 m 3 of biogas could produce up to 6 kWh of energy. After considering all the energy losses throughout the process, only approximately 2 kWh was the power yield [35]. Hence, based on the microbial studies that have been carried out previously, with 11.28 m 3 of biogas produced, 22.56 kWh of electricity could be produced in a day, while 676.8 kWh of electricity could be produced in a month.
According to TNB, the selling price of electricity is RM 0.35/kWh. Within a month, the revenue from selling electricity using biogas was estimated to be RM 236.88 and RM 2842.56 in a year. This amount of electricity could then be reused for operating the farm itself. Every month the owner could save about RM 250 on electricity bills. Utilizing electricity that was generated by biogas produced on-farm is a sustainable way to run the farm where waste is turned into something valuable, and the owners can benefit from it [36].

Economic on Biogas Production
Other economic parameters such as total purchase cost of equipment (PCE), fixed capital, investment, revenue, and profit were evaluated and shown in Table 8 below: Total PCE included the cost of a bioreactor, water pump, gas scrubber, and Genset facilities as well as activated carbon. A bioreactor was desirable to be located near the source of the feedstock medium to avoid excessive handling and transportation. The amount of gas piping required was also minimized by having the authority near. Variable cost consisted of any miscellaneous materials and utilities (given rate of RM 2.07/m 3 water used) that were calculated as well. Since various materials were not considered in this research, variable cost only involved utilities. Fixed costs consisted of maintenance charges, capital charges, insurance, and local taxes. However, in this study, only maintenance cost was taken into account.
Based on the production of biogas only, the revenue of this assessment was not adequate to cover the operational cost of this system. Hence, fertilizer was also introduced to the system where the revenue of this biogas plant could be expanded. The value of revenue showed in Table 8 included both electricity produced by biogas and also fertilizer from the solid waste of cow manure. The annual revenue was RM 274,855.68 where electricity only contributed approximately RM 3000. Therefore, it was suggested that this electricity produced from biogas mainly was supplied back to the farm so the farmers could save about RM 236.68 monthly on the electricity bill. Figure 3 illustrates the cash flow of the biogas plant. It was clear to see that at the beginning when the biogas plant was implemented, it would not generate much income for the farm and face a negative cash flow, especially the first one to two years when the cumulative cash flow was -RM 1,500,000. Then, slowly from year 3 to 7, the biogas plant started to show increment. The production plant was in a debt period when the profit was mainly used to pay off the debt for the construction and maintenance of the plant. In this study, the payback period was evaluated to be 7.02 years. Therefore, starting from year 8 and later, the production started to earn better and eventually pay back as a good investment at a steady rate.

Conclusions
In this study, the relationships between HRT, temperature, cow manure wastewater effluent, and economics were successfully evaluated. In addition, a Microsoft Excel modeling system, which assessed the outcome of a techno-economic assessment on biogas production from cow manure wastewater, was successfully built.
The experiment conducted showed that at 37 • C, HRT 14 days, the biogas production potential was 934.54 mL/gVS, the maximum biogas production rate was 60.55 mL/gVS.day, and the lag phase was 1.04 days. The highest yield of biogas was also predicted to be at HRT 20 days by using the modified Gompertz equation. At HRT 20 days, 11.28 m 3 of biogas was estimated to produce daily which was then converted to electricity at 22.56 kWh. This could help farmers to save up to RM 236.68 in their monthly electricity bill and RM 2842.56 annually.
A design technique for sizing the bioreactor was presented in this study. The volume of cow manure effluent affected the WV of the bioreactor, hence influencing the feasibility of investment. The bioreactor's working volume was found to be most suitable at the size of 132 m 3 when the effluent was 55 L/cow.day. With the bioreactor size fixed, the economic part of the assessment can be evaluated as well. The sizing of the reactor directly affected the PCE of the biogas plant with an estimation of RM 755,000. Other related economic values were evaluated in this study too, such as NPV which was estimated to be RM 63,000, ROI 14%, IRR 13%, and 7.02 years of PP.